Hi all:
I have a problem to use the inheritance of the template class.
The base class is look like:
template <class T>
class plane{
public :
plane() {};
protected:
...
};
The derived class is :
template <class T>
class triangle : public plane<T>{
public:
triangle() : plane<T>() {};
...
protected:
...
};
However, I got an error complaining that
'triangle' is not a template type
forward declaration of 'const class triangle'
Also, when I tried to call the function writen in plane class from triangle class, there is an error of undefined reference.
What's the problem please?
Thanks