eclipse中的unique_ptr自动完成

rah*_*man 5 c++ eclipse linux stl unique-ptr

我正在玩unique_ptr.在我的一篇文章中,人们通过在编译期间指定-std = c ++ 0x来帮助我编译使用此指针的程序.现在我想知道是否有任何方法可以指示eclipse在自动完成时考虑c ++ 11?
unique_ptr没有进入std :: namespace列表,也没有找到与unique_ptr相关的方法(reset,move ...).

谢谢vahid

ks1*_*322 1

我想你应该__GXX_EXPERIMENTAL_CXX0X__在 Eclipse 中为你的“路径和符号”添加定义。另请参阅这个问题GNU C++ how to check when -std=c++0x is in effective? 和同样的问题Eclipse indexer can't parse shared_ptr for shared_ptr.