So far I have tried these tricks: (from other SO questions)
-
C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Miscellaneous -> Other Flags. Put -std=c++0x (or for newer compiler version -std=c++11 at the end)
-
C/C++ General -> Paths and Symbols -> Symbols -> GNU C++. Click "Add..." and paste GXX_EXPERIMENTAL_CXX0X (ensure to append and prepend two underscores) into "Name" and leave "Value" blank.
Other noticeable things:
-
When I open C++11 header like
<memory>
it is visible that__cplusplus
macro shadows the text below it, including<backward/auto_ptr.h>
instead of all C++11 stuff; hovering mouse over macro shows that__cplusplus
expands to199711L
-
parser has no problems with this line:
int* p = nullptr;
Aucun commentaire:
Enregistrer un commentaire