vc2012报错了:
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
即可解决
本文提供了解决使用VC2012编译时遇到的警告信息的方法,通过加入预处理器定义_SCL_SECURE_NO_WARNINGS来解决std::_Copy_impl函数调用潜在的安全风险。
9万+

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



