Visual Studio Warning C4996

后端 未结 2 891
说谎
说谎 2020-12-03 06:31

I\'m getting the following warning

warning C4996: \'std::_Uninitialized_copy0\': Function call with parameters that may be unsafe - this call relies on the ca

2条回答
  •  春和景丽
    2020-12-03 07:26

    This error is generated because the code the compiler produces is not thread-safe. This means that if you are using multi-threaded coding, some of your stream I/O can (and probably will) get lost because the internal I/O buffers are shared. The suggested substitute functions will "eliminate" this problem.

提交回复
热议问题