严重性 代码 说明 项目 文件行 禁止显示状态
错误 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' mergesortc:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.12.25827\include\xutility2430
在工程属性—>C/C++—>命令行—>其他选项 中添加: -D_SCL_SECURE_NO_WARNINGS
本文介绍如何解决Visual C++编译器中的C4996警告,该警告涉及使用可能不安全的参数调用'std::copy'函数。通过在工程属性中添加-D_SCL_SECURE_NO_WARNINGS选项来禁用此警告。

709

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



