T
Tom
Please consider the following code snippet:
template<class T> class lifo
{ public:
static T* Anchor;
T* Next;
};
typedef lifo<int> intlifo;
int* lifo<int>::Anchor = NULL; // error: too few parameter lists
int* intlifo::Anchor = NULL; // error: too few parameter lists
What do i have to do in order to initialize Anchor of lifo<int> ?
Where is a parameter list required ?
(sorry if this is a stupid question; it's the first time i play around with
templates...)
Thanks,
Tom
template<class T> class lifo
{ public:
static T* Anchor;
T* Next;
};
typedef lifo<int> intlifo;
int* lifo<int>::Anchor = NULL; // error: too few parameter lists
int* intlifo::Anchor = NULL; // error: too few parameter lists
What do i have to do in order to initialize Anchor of lifo<int> ?
Where is a parameter list required ?
(sorry if this is a stupid question; it's the first time i play around with
templates...)
Thanks,
Tom