I\'m currently refactoring some code the explicitly specializes a member function of a class template with two template parameters.
template
I do not think that what you want is that easily possible. What about something like this:
template
class FooBase
{
void bar();
};
template
void FooBase::bar()
{ /* Generic stuff */ }
template
class Foo
: public FooBase
{ };
template
class Foo
: public FooBase
{
void bar ();
};
template
void Foo::bar()
{ /* Some special function */ }