一个关于map的问题,请高手指教!
我用VC中的C++编译器,new一个map时总是出现一堆warning信息,如
map<char,short,less<char>,allocator<short> > *word_map=new map<char,short,less<char>,allocator<short> >;
--------------------Configuration: TestMap - Win32 Debug--------------------
Compiling...
TestMap.cpp
F:\C++\TestMap.cpp(18) : warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<char,std::pair<char const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >::iterator,std::pair<c
har const ,short>,std::pair<char const ,short> &,std::pair<char const ,short> *,int>' : identifier was truncated to '255' characters in the debug information
F:\C++\TestMap.cpp(18) : warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<char,std::pair<char const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >::const_iterator,std::
pair<char const ,short>,std::pair<char const ,short> const &,std::pair<char const ,short> const *,int>' : identifier was truncated to '255' characters in the debug information
F:\C++\TestMap.cpp(18) : warning C4786: 'std::pair<std::_Tree<char,std::pair<char const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >::iterator,std::_Tree<char,std::pair<char const
,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >::iterator>' : identifier was truncated to '255' characters in the debug information
F:\C++\TestMap.cpp(18) : warning C4786: 'std::pair<std::_Tree<char,std::pair<char const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >::const_iterator,std::_Tree<char,std::pair<char
const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >::const_iterator>' : identifier was truncated to '255' characters in the debug information
f:\program files\microsoft visual studio\vc98\include\xtree(182) : warning C4786: 'std::_Tree<char,std::pair<char const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >::~_Tree<char,st
d::pair<char const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >' : identifier was truncated to '255' characters in the debug information
f:\program files\microsoft visual studio\vc98\include\xtree(162) : warning C4786: 'std::_Tree<char,std::pair<char const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >::_Tree<char,std
::pair<char const ,short>,std::map<char,short,std::less<char>,std::allocator<short> >::_Kfn,std::less<char>,std::allocator<short> >' : identifier was truncated to '255' characters in the debug information
Linking...
TestMap.exe - 0 error(s), 6 warning(s)
哪位高手能给个正确的map用法吗,谢谢!