当使用标准C++中的容器类等类时,会产生大量的警告信息
warning C4786
,一个示例如文后引用所示。
其解决办法可在stdafx.h文件中加上:#pragma warning(disable:4786) 来解决。
c:\program files\microsoft visual studio\vc98\include\xtree(201) : warning C4786: '?rbegin@?$_Tree@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@QAE?AV?$reverse_bidirectional_iterator@Viterator@?$_Tree@HHU_K
fn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@HAAHPAHH@2@XZ' : identifier was truncated to '255' characters in the browser information
c:\program files\microsoft visual studio\vc98\include\set(33) : see reference to class template instantiation 'std::_Tree<int,int,struct std::set<int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::al
locator<int> >' being compiled
c:\channel\chanexpert\interface\dlgruleadd.h(25) : see reference to class template instantiation 'std::set<int,struct std::less<int>,class std::allocator<int> >' being compiled
c:\program files\microsoft visual studio\vc98\include\xtree(203) : warning C4786: '?rbegin@?$_Tree@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@QBE?AV?$reverse_bidirectional_iterator@Vconst_iterator@?$_Tree
@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@HABHPBHH@2@XZ' : identifier was truncated to '255' characters in the browser information
c:\program files\microsoft visual studio\vc98\include\set(33) : see reference to class template instantiation 'std::_Tree<int,int,struct std::set<int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::al
locator<int> >' being compiled
c:\channel\chanexpert\interface\dlgruleadd.h(25) : see reference to class template instantiation 'std::set<int,struct std::less<int>,class std::allocator<int> >' being compiled
c:\program files\microsoft visual studio\vc98\include\xtree(205) : warning C4786: '?rend@?$_Tree@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@QAE?AV?$reverse_bidirectional_iterator@Viterator@?$_Tree@HHU_Kfn
@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@HAAHPAHH@2@XZ' : identifier was truncated to '255' characters in the browser information
c:\program files\microsoft visual studio\vc98\include\set(33) : see reference to class template instantiation 'std::_Tree<int,int,struct std::set<int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::al
locator<int> >' being compiled
c:\channel\chanexpert\interface\dlgruleadd.h(25) : see reference to class template instantiation 'std::set<int,struct std::less<int>,class std::allocator<int> >' being compiled
c:\program files\microsoft visual studio\vc98\include\xtree(207) : warning C4786: '?rend@?$_Tree@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@QBE?AV?$reverse_bidirectional_iterator@Vconst_iterator@?$_Tree@H
HU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@HABHPBHH@2@XZ' : identifier was truncated to '255' characters in the browser information
c:\program files\microsoft visual studio\vc98\include\set(33) : see reference to class template instantiation 'std::_Tree<int,int,struct std::set<int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::al
locator<int> >' being compiled
c:\channel\chanexpert\interface\dlgruleadd.h(25) : see reference to class template instantiation 'std::set<int,struct std::less<int>,class std::allocator<int> >' being compiled
C:\channel\ChanExpert\interface\dlgrulemanage.cpp(72) : warning C4786: 'std::pair<std::_Tree<int,int,std::set<int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::_Tree<int,int,std::set<int,std::le
ss<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator>' : identifier was truncated to '255' characters in the debug information