描述:程序中使用时 map<CString , TSendPictureStyle>出错
1,warning
c:/program files/microsoft visual studio/vc98/include/xtree(37) : warning C4786: '?_Color@?$_Tree@VCString@@U?$pair@$$CBVCString@@U_tagTCommondStyle@@@std@@U_Kfn@?$map@VCString@@U_tagTCommondStyle@@U?$less@VCString@@@std@@V?$allocator@U_tagTCommondS
tyle@@@4@@3@U?$less@VCString@@@3@V?$allocator@U_tagTCommondStyle@@@3@@std@@KAAAW4_Redbl@12@PAU_Node@12@@Z' : identifier was truncated to '255' characters in the browser information
c:/program files/microsoft visual studio/vc98/include/map(46) : see reference to class template instantiation 'std::_Tree<class CString,struct std::pair<class CString const ,struct _tagTCommondStyle>,struct std::map<class CString,struct _tag
TCommondStyle,struct std::less<class CString>,class std::allocator<struct _tagTCommondStyle> >::_Kfn,struct std::less<class CString>,class std::allocator<struc
warning C4786 详解(VC++6.0)
最新推荐文章于 2026-06-27 04:00:47 发布
本文详细解析了在VC++6.0编程时遇到的警告C4786,该警告源于标识符长度超过255个字符的限制。内容探讨了这个问题产生的原因,即在使用STL模板类如map时由于类名过长导致,并提供了通过#pragma warning(disable : 4786)来屏蔽警告的解决方案。


537

被折叠的 条评论
为什么被折叠?



