Thursday, April 25, 2013

derivation of a template class

template<typename T>
class B {
public:
void f() { }
};

template<typename T>
class D : public B<T> {
public:
void g()
{
f(); // compiler gives an error here
}
};



http://www.velocityreviews.com/forums/t291114-derivation-of-a-template-class.html

No comments:

Post a Comment