I am creating a template class with a multimap to store a keyed pair. Everytime I try to compile I get the same errors:
1%26gt;------ Build started: Project: 6_4Pro, Configuration: Debug Win32 ------
1%26gt;Compiling...
1%26gt;main_6_4.cpp
1%26gt;c:\documents and settings\deathguru\my documents\visual studio 2008\projects\6_4pro\keypair.h(23) : warning C4346: 'std::multimap%26lt;keyType,itemType%26gt;::iterat... : dependent name is not a type
1%26gt; prefix with 'typename' to indicate a type
1%26gt; c:\documents and settings\deathguru\my documents\visual studio 2008\projects\6_4pro\keypair.h(24) : see reference to class template instantiation 'keyPairMap%26lt;keyType,itemType%26gt;' being compiled
1%26gt;c:\documents and settings\deathguru\my documents\visual studio 2008\projects\6_4pro\keypair.h(23) : error C2146: syntax error : missing ';' before identifier 'mapIterator'
1%26gt;c:\documents and settings\deathguru\my documents\visual studio 2008\projects\6_4pro\keypair.h(23) : error C4430: missing type specifier - int assumed. N
Template and Multimap?
The Yahoo editor truncates lines that are too long and it really munched your code. Break up the lines and try posting again or post your code at http://pastebin.com/ and the post the URL here with your question.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment