Eclipse CDTでC++0x/C++11を使うための設定

以下のように設定する.

  • C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Miscellaneous -> Other Flags
    "-std=c++0x"を追加する
  • C/C++ General -> Paths and Symbols -> Symbols -> GNU C++
    "Add..."を押して,Nameに"__GXX_EXPERIMENTAL_CXX0X__",Valueを空欄にする.

参考