Template Child Class Overriding a Parent Class's Virtual Function
- by user334066
The below code compiles with gcc v4.3.3 and the templated child class seems to be overriding a virtual function in the parent, but doesn't that break the rule that you cannot have a virtual template function? Or is something else happening that I don't understand?
class BaseClass
{
public:
virtual void Func(int var)
{
…