warning: -D_SCL_SECURE_NO_WARNINGS

来源:互联网 发布:淘宝投诉服务态度 编辑:程序博客网 时间:2024/06/08 04:18

错误提示:

'std::uninitialized_copy::_Unchecked_iterators::_Deprecate': Call to 'std::uninitialized_copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'pclTest d:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory102


解决方案:

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

      -D_SCL_SECURE_NO_WARNINGS


0 0
原创粉丝点击