提供两种方法进行设置
Project Properties –> C/C++ General –> Paths and Symbols –> Symbols –> GNU C++
增加一个新的symbol
方法1
name 设置为 __GXX_EXPERIMENTAL_CXX0X__
value 设置为 空
方法2
name 设置为 __cplusplus
value 设置为 201103L
(不行就用201402L
)
可以通过查看容器的头文件获取
然后 重新编译(Project –> C/C++ Index –> Rebuild)