simple template friend question
Here is the top of my class
Code:
template < class T >
class TODLLNode
{
friend class TODLList;
Whenever I try to intialize anything in a test function I get the error
todllnode.templ:16: error: template argument required for 'struct TODLList'
What am I doing wrong?
If it helps...
My private variables are as follows:
private:
T data_;
TODLLNode < T > * fore_;
TODLLNode < T > * back_;
Here is a simple initializing of a variable to get this error in my test function
TODLLNode < int > a;