std::uninitialized_copy::_Unchecked_iterators::_Deprecate

以你之姓@ 2022-07-13 01:29 131阅读 0赞

编译警告信息

  1. error C4996: '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'

解决方法

在stdafx.h中添加一宏定义

  1. #define _SCL_SECURE_NO_WARNINGS

或者
属性-> c/c++ -> 预处理器 -> 预处理器定义 里添加
_SCL_SECURE_NO_WARNINGS

发表评论

表情:
评论列表 (有 0 条评论,131人围观)

还没有评论,来说两句吧...

相关阅读