When build with Eclipse get warnings and errors about c++0x keywords. Example:
identifier ‘decltype’ will become a keyword in C++0x
How to workaround it?
EDIT:
Project->Properties->C/C++ Build->Discovery options->GCC C++
Compiler->Compiler Invocation Arguments->[-E -P -v -dD
${plugin_state_location}/specs.c –std=gnu++0x]
but it hasnt effect, intresting, even if put there empty string it will try to compile with the same errors. Dont know for what this parameter needed(
Try this:
Project -> Properties -> C++-Build[Settings] -> G++Compiler[miscellanous] -> Other flags
Add “-std=c++0x” there.