C++:error C4996: 'std::_Uninitialized_copy0': Function call with parameters that may be unsafe

来源:互联网 发布:mac brew lnmp 编辑:程序博客网 时间:2024/06/06 12:20

转载自:http://blog.csdn.net/umdcoding/article/details/52108099


错误调试:

c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory(348): error C4996: 'std::_Uninitialized_copy0': Functioncallwith 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


添加:_SCL_SECURE_NO_WARNINGS 
注意:抛出的错误为: -D_SCL_SECURE_NO_WARNINGS(其实-D后面才是要添加的)


0 0