错误提示:
'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\xmemory 102
解决方案:
加入预处理器(项目属性----C/C++----预处理----预处理器定义):
-D_SCL_SECURE_NO_WARNINGS
本文介绍了解决Visual C++中'std::uninitialized_copy'产生的警告问题的方法。通过在预处理器中加入'-D_SCL_SECURE_NO_WARNINGS'来禁用此警告。
788

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



