1. 主页 > vs安装问题 > VS2015安装问题 >

VS2015 中错误 C4996

今天用算法函数中的copy来复制字符数组时出现了这个错误    错误 C4996 'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::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'

在网上找到的解决办法 :
在工程属性—>C/C++—>命令行—>其他选项 中添加:
-D_SCL_SECURE_NO_WARNINGS

 

本文由VS软件圈(vssoft.net)发布,不代表VS软件圈立场,转载联系作者并注明出处:https://vssoft.net/vsazwt/VS2015anzhuangwenti/2020/0727/5953.html

联系我们

在线咨询:点击这里给我发消息

微信号:PREEE8

工作日:9:30-18:30,节假日休息