VS2015 中錯誤 C4996


今天用算法函數中的copy來復制字符數組時出現了這個錯誤    錯誤 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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM