tags:

views:

1698

answers:

8

Is there a compiler that has good support for the new C++0x?

I use GCC but unfortunately the current version 4.4 has a poor support for the new features.

+3  A: 

The current beta version of the Comeau compiler seems to have good C++0x support.

Chris Jester-Young
+1  A: 

C++0x is still not ready, so don't expect to have it supported atm. GCC 4.4 and Visual C++ 2010 are good candidates (they have some of the most anticipated new feautres like lambdas and auto) that get you started, but the standard isn't finished yet.

SztupY
+6  A: 

I'm afraid gcc is probably the best you're going to get at this stage.

There's a list of features and supported compilers here:

http://wiki.apache.org/stdcxx/C++0xCompilerSupport

Charles Ma
gcc may be the best free one. But the Comeau compiler has always been good.
Martin York
+1  A: 

GCC 4.4 does at least have some of the cool features (auto, variadic templates, rvalue references, etc.). There are also development branches for concepts and lambdas.

See C++0x support in GCC.

Zifre
+15  A: 

The Apache Standard C++ Library project maintains a wiki page of major compilers' C++0x support.

Here are links to the vendors' pages describing their C++0x support:

Josh Kelley
+1  A: 

I recommend intel compiler if your on linux/unix it's got better support than GCC and produces faster/smaller binaries (I normally get a free 10% performance boost using it)

Robert Gould
+2  A: 

The only compiler that has an implementation of concepts is conceptgcc (and even that is incomplete - but it is good enough to get a good feel for the feature).
Visual C++ 2010 Beta has some useful C++0x support - you can play with lambdas, rvalue references, auto, decltype.
Comeau C++ or the EDG based compilers are surprisingly not as advanced I would have expected them to be in their implementation of C++0x.
GCC 4.4 (variadic templates, initializer lists, inline namespaces, autor, decltype) probably has the most features implemented out of any of the other compilers, but is lagging in concepts and lambdas (separate branch development is ongoing).

Faisal Vali
conceptgcc only implements an outdated concepts proposal and is very buggy and unstable.
sellibitze
I thought concepts were removed from C++0x.
Adrian McCarthy
+2  A: 

Scott Meyers has a nice and detailed comparison here:

http://www.aristeia.com/C++0x/C++0xFeatureAvailability.htm

sdt