Severity Code Description Project File Line Suppression State
Error 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' ****** d:\program files (x86)\microsoft visual studio 14.0\vc\include\xutility 2372
方法:在 Project → ***(项目名) Properties 中,依次打开 Configuration Properties → C/C++ → Preprocessor,在 Preprocessor Definition 中,增加:
_SCL_SECURE_NO_WARNINGS

然后确定即可。

博客介绍了在项目属性中添加预处理器定义的方法。具体是在 Project → ***(项目名) Properties 里,依次打开 Configuration Properties → C/C++ → Preprocessor,在 Preprocessor Definition 中添加内容,最后确定。
2042





