惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
Vercel News
Vercel News
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
C
Check Point Blog
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
博客园_首页
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
Last Week in AI
Last Week in AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
V
Visual Studio Blog
小众软件
小众软件

博客园 - Seraph's Zone(WelCome)

ADO 数据类型转换表[转] 对FckEditor编辑器在MAXTHON浏览器下选择服务器文件对话框显示不正常的改进 [转]写给C++程序员的C# FAQ [Invalid postback or callback argument]昨晚调试程序时出现的问题,MARK一下 试图运行项目时出错:无法在web服务器上启动项目得解决办法 右键无法查看网页源代码修复方法 javascript去空格函数 asp.net程序编译调试时偶尔出现访问被拒绝的错误 使用VS2003创建WEB程序的时候出现"AutoMation服务器不能创建对象"错误 如何在ViewState中保存和取出自己定义的类 ASP.NET开发-实用技巧 (“~”的用法、保存滚动条的位置……) Visual Studio.Net 快捷键表 asp.net 获取插入记录的ID url传递中文的解决方案 (转) 解决ASP.NET2.0和1.1在同一台电脑上不能并行的问题(转) 创建插件框架(1) 利用SQLDMO进行数据库备份还原操作 VS2005 常用快捷键 将文件长路径转换为短路径(DOS路径)
VC中identifier was truncated to '255'
Seraph's Zone(WelCome) · 2007-06-22 · via 博客园 - Seraph's Zone(WelCome)

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