following situation: I have in one dll a template class Point
namespace Image
{
template<typename T> class Point
{
.
.
.
and tring to use this class in another dll. The class looks like:
//Base.h
template<typename T> class Point;
class Base{
Point<double> _Point;
};
//Child.h
#include "Base.h"
class Child : public Base{
Child(Point<double> pt);
doSth();
}
//Child.cpp
#include "Child.h"
#include "Point.h"
Child::Child(Point<double> pt){
_Point = pt;
}
Child::dosth(){
Point<double> p = _Point; // In this Row i get an "undefined type 'Point<double>' Error
}
Any ideas why i get the error? is my idea totally wrong to forward declare the Point-Class in the header file and make the include in the .cpp ?
Thank you very much, have a nice day!