您的位置:首页 > 其它

解决VisualStudio报use -D_SCL_SECURE_NO_WARNINGS的问题

2015-01-24 13:02 357 查看
源贴地址:http://blog.csdn.net/zengraoli/article/details/28910485

我的VS2013调试boost程序库中的uuid库,使用函数random_generator()(),编译时出现错误:

1>c:\program files (x86)\microsoft visual studio11.0\vc\include\xutility(2176): error C4996: 'std::_Copy_impl': Function callwith parameters that may be unsafe - this call relies on the caller to checkthat the passed values are correct. To disable this warning,
use-D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'CheckedIterators'

加入预处理器(项目属性----C/C++----预处理----预处理器定义):_SCL_SECURE_NO_WARNINGS

即可解决。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: