M
mrstephengross
I'm trying to specialize one template argument in a member function
that takes two template arguments. I've seen other posts on this group
indicating that it's not possible, but I wanted to make sure. Here's
what the code looks like:
enum myenum { apple, pear };
class Foo
{
template<myenum E, typename Y> doSomething();
};
template<typename Y> Foo::doSomething<apple>() { /* ... */ }
Which doesn't compile ("explicit template argument list is not
allowed..."). Any ideas?
Thanks,
--Steve
that takes two template arguments. I've seen other posts on this group
indicating that it's not possible, but I wanted to make sure. Here's
what the code looks like:
enum myenum { apple, pear };
class Foo
{
template<myenum E, typename Y> doSomething();
};
template<typename Y> Foo::doSomething<apple>() { /* ... */ }
Which doesn't compile ("explicit template argument list is not
allowed..."). Any ideas?
Thanks,
--Steve