Hi

Can anyone help me work out a way around the following problem:

typedef SmartPtr<LinkedListObject<MyPointer> > MyPointer;

Unsurprisingly (I guess) gives me:

`MyPointer' was not declared in this scope
template argument 1 is invalid
ISO C++ forbids declaration of `type name' with no type


SmartPtr<T> is a smart pointer class that wraps type 'T' providing wrapped
operations of T* - dereference, equality, implicit conversion, and arithmetic.

Unfortunately the LinkedListObject _needs_ to store its next and prev pointers
as pointers of type MyPointer. This whole setup arises from defining different types of LinkedListObject that are passed as a template argument to a class that creates a singly linked list or a class that creates a doubly linked list and these classes must themselves keep internal pointers using the smart pointer 'MyPointer'.

Any help would be greatly appreciated!

Many thanks!