dimanche 28 août 2016

Eclipse Juno - not parsing C++11, current SO solutions doesn't work

So far I have tried these tricks: (from other SO questions)

  1. 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)

  2. 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.

  3. answer to this question

Other noticeable things:

  1. 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 to 199711L

  2. parser has no problems with this line: int* p = nullptr;

Aucun commentaire:

Enregistrer un commentaire