【发布时间】:2010-07-23 11:02:22
【问题描述】:
我收到以下警告
warning 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. See documentation on how to use Visual C++ 'Checked Iterators' c:\program files\microsoft visual studio 10.0\vc\include\memory 348
我似乎找不到任何有助于消除此警告的信息。通过查看输出,该警告似乎与 Boost.Signals2 和 auto_buffer 有关。
这可以安全忽略还是我可以以某种方式将其删除?
【问题讨论】:
-
抱歉,删除是指更改代码(与 MS 推荐的编译器开关相对)
-
我想看看那一行:c:\program files\microsoft visual studio 10.0\vc\include\memory 348
-
当然,我阅读了另一个问题。我有点担心会引发这些警告。忽略它仍然安全吗?
-
+1 很高兴看到自从我开始使用 boost::signals2 以来我想问的确切问题。 ;-)。