I'm trying to do have Derived derive from Base:
class Base
{
public:
Base() {};
};
template <class T>
class Derived : public Base
{
public:
Derived::Derived()
{
}
};
This gives me the following error:
error C3254: 'Derived': class contains explicit override '{ctor}' but does not derive from an interface that contains the function declaration
note: see reference to class template instantiation 'Derived' being compiled
error C3244: 'Derived::Derived(void)': this method was introduced by 'Unknown>' not by 'Base'
I'm totally new to templates, what simple steps am I missing? This seems like a pretty basic thing.