W
William Payne
As the title says, is something like this legal:
template<typename T>
class foo
{
public:
static T* t;
};
T* foo::t;
?
I can't get it to compile, it doesn't like my definition of the static
member variable (I have it in the .cpp-file of the class). The compiler
simply says parse error before * token.
/ WP
template<typename T>
class foo
{
public:
static T* t;
};
T* foo::t;
?
I can't get it to compile, it doesn't like my definition of the static
member variable (I have it in the .cpp-file of the class). The compiler
simply says parse error before * token.
/ WP