Ok, this is very strange.
in TRegionGrower.h , I've got:
--
template <class T>
class TRegionGrower
{
public:
TRegionGrower( void );
~TRegionGrower( void );
};
--
In TRegionGrower.c p, I've got:
--
#include "TRegionGrower. h"
template <class T>
TRegionGrower<T >::
TRegionGrower( void )
{
}
template <class T>
TRegionGrower<T >::
~TRegionGrower( void )
{
}
--
I use this class by doing:
TRegionGrower<U Int8> regionGrower;
I get two link errors telling me that the constructor and destructor are
undefined.
However, if I remove the constructor and destructors from the .cp file
and change the .h file to:
--
template <class T>
class TRegionGrower
{
public:
TRegionGrower( void )
{
}
~TRegionGrower( void )
{
}
};
--
The link errors go away.
Any idea what might be going on here?
in TRegionGrower.h , I've got:
--
template <class T>
class TRegionGrower
{
public:
TRegionGrower( void );
~TRegionGrower( void );
};
--
In TRegionGrower.c p, I've got:
--
#include "TRegionGrower. h"
template <class T>
TRegionGrower<T >::
TRegionGrower( void )
{
}
template <class T>
TRegionGrower<T >::
~TRegionGrower( void )
{
}
--
I use this class by doing:
TRegionGrower<U Int8> regionGrower;
I get two link errors telling me that the constructor and destructor are
undefined.
However, if I remove the constructor and destructors from the .cp file
and change the .h file to:
--
template <class T>
class TRegionGrower
{
public:
TRegionGrower( void )
{
}
~TRegionGrower( void )
{
}
};
--
The link errors go away.
Any idea what might be going on here?
Comment