template <class T>
class Llist
//....
//Iterates to position and sets pointers to node at position-1 and position.
template <class T>
void LList<T>::iterate(Node<T>*& previous, Node<T>*& next, unsigned short pos)
{
//some code
}
//Start Iterator
template <class T>
inline Iterator<T> LList<T>::start()
{
//some code
}
template <class T>
class Iterator
{
Node<T> *pointer;
//......
}
template <class T>
class Node
{
T data
//....
}
This is a linked list template class using template classes of node and iterator.
I'm having problems with these method headers. gcc is giving me error on the header lines:
expected initializer before ‘<’ token
That's the only error I'm getting and only in those functions. And those are the only functions with multiple templated types in the headers. So I'm assuming it has something to do with that. How should I declare these?
thank you
*Please exuse me for not pasting all of my code I don't want somebody in my class to see this and copy me.