close

在Visual Studio2015使用Boost Library的時候,出現以下錯誤:

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

arrow
arrow
    文章標籤
    Visual studio C++
    全站熱搜

    笨海豚 發表在 痞客邦 留言(0) 人氣()