VC中identifier was truncated to '255'

From http://www.blog.edu.cn/user3/jingshuang/archives/2006/1590091.shtml

VC中使用STL出现的警告.

当在使用STL时,VC有时会提出类似以下的警告:
Compiling...
test.cpp
C:\Windows\Desktop\test\test.cpp(13) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std
::char_traits<char>,std::allocator<char> > const &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,int>' : identifier was truncated to '255' characters in the debug information

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/C4786.asp给了很好的解释.
都是因为VC对STL的不完全支持造成的.

解决方法:
#ifdef WIN32
  #pragma warning (disable: 4514 4786)
#endif

posted on 2007-06-22 16:55  Seraph's Zone(WelCome) 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/Wang-Seraph/archive/2007/06/22/793292.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值