Skip to main content
gamedev.net
🔒 Locked

Template classes

Started by Lazy303 0 replies 200+ views
Original Post
Lazy303
Lazy303
Hi! I''ve written a template class for linked lists. But Now I want to create a new template class that uses the linked list class, but it doesn''t work These are my tree classes : template class CFreeList template class CFreeListChunk template class CLinkedList In the CFreeList class I have a member : CLinkedList> m_oChunkList; But i get this error cfreelist.h(55) : error C2146: syntax error : missing '','' before identifier ''m_oChunkList'' Hmm.. havn''t got a clue... plz help! /lazy
Fruny
Fruny
insert a space between the > >, otherwise they get parsed as the operator >>


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.