A
Active8
Maybe it's been so long that I forgot something but I can't remember
the solution to this compiler error:
error C2039: '__ctor' : is not a member of 'GFX<class T>'
error C2935: 'GFX<class T>' : template-class-id redefined as a
global function
gfx.h
#include <canvas.h>
template <class T>
class GFX : public MCCanvas<class T>
{
public:
GFX();
// GFX(T* parent, wxPoint point, wxSize size);
~GFX(){}
private:
};
gfx.cpp
#include "gfx.h"
template <class T>
GFX<class T>::GFX(){}
It does this whether I implement the class in the header or the cpp
file and regardless of whether it's for the default ctor, or
another. MCCanvas is a template class and it compiles fine.
TIA
the solution to this compiler error:
error C2039: '__ctor' : is not a member of 'GFX<class T>'
error C2935: 'GFX<class T>' : template-class-id redefined as a
global function
gfx.h
#include <canvas.h>
template <class T>
class GFX : public MCCanvas<class T>
{
public:
GFX();
// GFX(T* parent, wxPoint point, wxSize size);
~GFX(){}
private:
};
gfx.cpp
#include "gfx.h"
template <class T>
GFX<class T>::GFX(){}
It does this whether I implement the class in the header or the cpp
file and regardless of whether it's for the default ctor, or
another. MCCanvas is a template class and it compiles fine.
TIA