G
Gandu
Could some C++ guru please help me. I have a template based general linked list
class that I want to inherit publicly to create a queue class. In the case of
non-template inheritance, I can use:
class A{ };
class B: public A{};
And for the constructor of B:
B:B():A(){}
now suppose I have a template as:
template <class T>
class A{ ... };
template <class T>
class B: public A<T>{ ... }
What is the syntax for the constructor of B in this case, i.e., what goes into
the following - where the question marks are?
template <class T>
B<T>::B():???????{}
Thanks in advance for your help!!
class that I want to inherit publicly to create a queue class. In the case of
non-template inheritance, I can use:
class A{ };
class B: public A{};
And for the constructor of B:
B:B():A(){}
now suppose I have a template as:
template <class T>
class A{ ... };
template <class T>
class B: public A<T>{ ... }
What is the syntax for the constructor of B in this case, i.e., what goes into
the following - where the question marks are?
template <class T>
B<T>::B():???????{}
Thanks in advance for your help!!