I have a class similar to this:
template< typename T, typename Allocator >
class MemMngList : protected LockFreeMemMng<Node, Link>
{
public:
typedef T Type;
typedef Allocator AllocatorType;
struct Node : public LockFreeNode
{
public:
struct Link : protected LockFreeLink< Node >
{
....
The problem is I get an error in template argument for LockFreeMemMng('Node' : undeclared identifier...).
How can I use forward declaration of Node
and Link
in above of MemMngList implementaion?
template< typename T, typename Allocator >
class MemMngList;
//Forward Declaration of Node and Link