For too long I twisted my thumbs over it. I am trying to implement one linked list using two different allocators for both nodes and the type that they point to. The following code continues to complain about me that I partially specialize the declaration of the friends class in the definition of SingleListNode:
namespace containers { template<typename T, typename TAlloc, typename NAlloc>class SingleList;
He continues to tell me:
../src/singlelist.h: 21:16: error: specialization "template template containers" :: SingleList should appear in the namespace area .. /src/singlelist.h:21:39: error: partial specialization 'container: : SingleList declared 'friend
As far as I can tell, this is not a specialization. Perhaps this is a bug in the GCC compiler? Otherwise, where am I mistaken?
source share