Declare Friend with a template class in Visual C++ 2005
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
When I try to compile my old code in Visual C++ 2005, I get the error message error C2990: 'Cg2HashTable' : non-class template has already been declared as a class template with the code
//*************************************************************** // Forward declarations template class Cg2FixedList; template class Cg2HashTable; template class Cg2SortedList; //*************************************************************** class Cg2DataHandle { private: friend class Cg2FixedList; friend class Cg2HashTable; friend class Cg2SortedList; ...............
How can I fix this? Thanks!Nacho