What IDE has a better support for the new C++0x features in g++?
I know you can use the editor as is and compile the code using -std=c++0x, but I would want the new features do not be marked as errors by the IDE (auto, range-based loop, variadic templates, etc.).
gcc is used to compile C program. g++ can compile any . c or . cpp files but they will be treated as C++ files only.
The g++ utility supports almost all mainstream C++ standards, including c++98 , c++03 , c++11 , c++14 , c++17 , and experimentally c++20 and c++23 . It also provides some GNU extensions to the standard to enable more useful features.
g++ command is a GNU c++ compiler invocation command, which is used for preprocessing, compilation, assembly and linking of source code to generate an executable file.
C++0x was the working name for the new standard for C++, adding many language features that I'll cover in this series on C++11. In September 2011, C++0x was officially published as the new C++11 standard, and many compilers now provide support for some of the core C++11 features.
Here is the Eclipse CDT bug tracking support for the c++0x features added in g++ 4.6.
So far CDT supports the features in g++ 4.5 (that includes type inference with auto, decltype and trailing return types, variadic templates, lambdas, rvalue refs) plus range-based for and forward declaration of enums. The parser tweaks were done a while ago, and judging by the milestones, the latest Eclipse release (Indigo) includes them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With