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

错误调试:

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

C++:error C4996: 'std::_Uninitialized_copy0': Function call with parameters that may be unsafe_第1张图片

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

当使用strcpy 时也会遇到,前面的博文已经提到了;

你可能感兴趣的:(C++)