11

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

Cœur
  • 37,241
  • 25
  • 195
  • 267
ebasconp
  • 1,608
  • 2
  • 17
  • 27
  • lambdas, typed enums, auto; none seem to work so far on netbeans 7 – lurscher Jun 29 '11 at 19:21
  • i think not specifying platform is intentional (or should be) – lurscher Jun 29 '11 at 19:24
  • 5
    @Tomalak, yes its duplicate, but that question is from 2009, hopefully things have changed for c++0x and ide in two years - which brings the topic; shouldn't SO support merging of questions? it seems so, so maybe the question should be merged rather than marking it as duplicate (which would effectively close it) – lurscher Jun 29 '11 at 19:25
  • @lurscher: Yes. The ideal result of closing this as a dupe is that the two can be merged. – Lightness Races in Orbit Jun 29 '11 at 19:28
  • @lurscher: Right, so we'll just list the answer for every possible platform, shall we?! – Lightness Races in Orbit Jun 29 '11 at 19:29
  • i would hope merging is a rather different operation from closing as dupe - in other case, closing it as dupe would be a bad idea – lurscher Jun 29 '11 at 19:30
  • 1
    @lurscher: Why? Step 1: closed as duplicate. Step 2: duplicate merged into original. – Lightness Races in Orbit Jun 29 '11 at 19:32
  • 5
    Since the two questions don't have the same answer, they are not duplicates. Unless you know of a good way to integrate G++ with Visual Studio, which is the accepted answer to the other question. – stonemetal Jun 29 '11 at 19:43
  • @stonemetal: That is incorrect. That is not how duplicates are defined in SO. –  Jun 29 '11 at 19:58
  • 2
    @0A0D Really? According to http://meta.stackexchange.com/questions/12182/when-is-a-duplicate-question-not-a-duplicate and all the other linked questions about Dups seem to agree that dups are defined by the answers they produce rather than the questions asked. – stonemetal Jun 29 '11 at 20:55
  • @stonemetal: In one of the referenced questions, @TheTXI states : "I would imagine that when a question is asking the same thing (and likely to get the exact same answer), then it should be classified as a dupe." This question is likely to get the same answer as the provided duplicate link and is essentially the same exact question. –  Jun 29 '11 at 21:02
  • 3
    @0A0D: I know VisualStudio 2010 IDE has good support for all the C++0x features that Visual C++ 10 implements (quite poor support actually if comparing it against g++ 4.6, for example). So, as my question is heavily related to g++, I do not think my question is duplicated. – ebasconp Jun 29 '11 at 21:18
  • @ebascomp: Ok, then http://stackoverflow.com/questions/980573/compiler-support-for-upcoming-c0x and http://stackoverflow.com/questions/657511/c-compiler-that-supports-c0x-features –  Jun 29 '11 at 21:22
  • @0A0D: Those are both about compilers, not IDEs. – Billy ONeal Jun 29 '11 at 21:48
  • 1
    @Stonemetal: http://meta.stackexchange.com/questions/95799/closing-as-duplicate-when-the-answers-are-duplicates <-- Dupes are NOT defined by answers. – Billy ONeal Jun 29 '11 at 21:50
  • 2
    @Tomalak, not a dupe. The other one was about only windows IDEs. They only overlap. – Johannes Schaub - litb Jun 30 '11 at 23:40

2 Answers2

2

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.

Tobu
  • 24,771
  • 4
  • 91
  • 98
1

I believe Code::Blocks has had support for a while but I do not know to what extent.

Andrew White
  • 52,720
  • 19
  • 113
  • 137
  • Though it is working good, I do not know if the IDE has good support for C++0x or simply it does not have support for parsing my code while editing it. Anyway, it is nice and I will give it a try :) :) Thanks! – ebasconp Jun 29 '11 at 21:34
  • The version I'm currently using don't understand type inference keywords (auto, decltype) , not for coloring nor type detection. I'm using gcc4.5 with it. – Klaim Jun 29 '11 at 22:07
  • Down vote because the last time i check the Code::Blocks do not support. –  Jun 15 '12 at 12:22
  • @Mike: please see (http://hello-cpp0x.blogspot.com/2011/05/enable-c0x-support-in-gcc.html) – Andrew White Jun 15 '12 at 18:03