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

在这里插入图片描述
然后确定即可。

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐