S
Seb
I am trying to initialize a const static object data member in a header
file? The following code errs.
class Object
{
public:
virtual const char* ToString() { return "Object"; }
virtual DataType GetType() { return DataType( "Object" ); }
protected:
const static DataType _dataType( "Object");
};
I don't want to have to create a .cpp file for many of my utility headers.
Any help would be greatly appreciated.
Thanks
file? The following code errs.
class Object
{
public:
virtual const char* ToString() { return "Object"; }
virtual DataType GetType() { return DataType( "Object" ); }
protected:
const static DataType _dataType( "Object");
};
I don't want to have to create a .cpp file for many of my utility headers.
Any help would be greatly appreciated.
Thanks