If I have a c++ template class declared in Point.hpp file as below
template <typename>
class Point
{
....
}
If I want a new class derived from the above class in Node.hpp file but the data type is specialized to be double:
class Node: public Point<double>
{
...
}
When I compile the codes, the compiler complains that in Node.hpp that the base class Point is undefined. I know that I have included Point.hpp in Node.hpp. Why that error? Or how can I derived a node class (which should be a non template class) from a template Point class with double data type?