By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,898 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,898 IT Pros & Developers. It's quick & easy.

Partial member of class template specialization

P: n/a
How can I partlialy specialize function func below for <class Class, int>
for example?

Thanks,

Petre

template<class Class, class Dummy>

class Template

{

public:

Class func(Dummy param);

};

template <class Class, class Dummy> Class Template<Class, Dummy>::func(Dummy
f)

{

}

template <class Class, int> Class Template<Class, int>::func(int f)

{

}

int main()

{

Template<int, int> a;

}
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> How can I partlialy specialize function func below for <class Class, int>
for example?


Sorry, I've found the answer... I should've specialized the class before.

Petre
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.