After reading this thread, I wrote down:
template <typename T, template <T> typename C>
class Base
Base class contains a 'C
' type container that contains 'T
' type objects.
My problem is when I try to make a derived class:
class Derived : public Base
The first error was
argument list for class template is missing.
So I figured I have to tell the template Base
class what types I'm gonna use. So suppose my derived class will have a 'std::set
' for container that has integers.
class Derived : public Base <int, set<int>>
But it 'std::set<int>
' gets underlined in red and it tells me it's "not a template class".
I'm not sure to understand what I'm doing wrong.
Thanks in advance.