我今天安装了Netbeans 7.4,支持PHP,Java和C ++。
但是,我似乎只对C ++ 11提供了部分支持(即使使用带有-std=c++11 or -std=C++0x
的GCC 4.8.1)。
我查看了头文件(例如chrono),并且有一个名为_V2的内联命名空间,它遵循以下注释:
// To support the (forward) evolution of the library's defined
// clocks, wrap inside inline namespace so that the current
// defintions of system_clock, steady_clock, and
// high_resolution_clock types are uniquely mangled. This way, new
// code can use the latests clocks, while the library can contain
// compatibility definitions for previous versions. At some
// point, when these clocks settle down, the inlined namespaces
// can be removed. XXX GLIBCXX_ABI Deprecated
所以,例如,如果我想使用high_resolution_clock,我需要
chrono::_V2::high_resolution_clock
而不是
chrono::high_resolution_clock
来自string的to_string也声明为undefined。
我错过了什么吗?我是否必须在Netbeans中更新我的标题?如果是的话,我可以请你告诉我如何继续吗?
非常感谢!