warning: -D

xiaoxiao2021-02-27  526

错误提示:

'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

转载请注明原文地址: https://www.6miu.com/read-3128.html

最新回复(0)