C++ Boost: what's the cause of this warning?

后端 未结 6 1815
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 04:16

I have a simple C++ with Boost like this:

#include 

int main()
{
  std::string latlonStr = \"hello,ergr()()rg(rg)\";
  boo         


        
6条回答
  •  萌比男神i
    2020-12-03 04:47

    The warning comes from Visual Studio's non-standard "safe" library checks introduced starting with MSVC 8.0. Microsoft has identified "potentially dangerous" APIs and has injected warnings discouraging their use. While it is technically possible to call std::copy in an unsafe way, 1) receiving this warning does not mean you are doing so, and 2) using std::copy as you normally should is not dangerous.

提交回复
热议问题