解决Visual Studio2015使用Boost库 error C4996: 'std::copy::_Unchecked_iterators::_Deprecate'

来源:互联网 发布:阴茎粗大的感受 知乎 编辑:程序博客网 时间:2024/06/15 13:22
  • 在Visual Studio2015使用Boost库的时候,出现如下错误:

    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'
  • 解决办法
    在工程属性—>C/C++—>命令行—>其他选项 中添加:
    -D_SCL_SECURE_NO_WARNINGS

以上,错误解除

1 0