xdevel2000
xdevel2000

Reputation: 21364

Compiler support for upcoming C++0x

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.

Upvotes: 9

Views: 10200

Answers (9)

Josh Kelley
Josh Kelley

Reputation: 58342

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:

Upvotes: 28

Prodicus
Prodicus

Reputation: 447

GCC 4.6, released 3/25/11, supports most of the non-concurrency-related features of C++0x. Now that C++0x is no longer in flux compiler support may progress a little more quickly.

Upvotes: 3

sdt
sdt

Reputation: 384

Scott Meyers has a nice and detailed comparison here:

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

Upvotes: 3

Faisal Vali
Faisal Vali

Reputation: 33663

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

Upvotes: 4

Robert Gould
Robert Gould

Reputation: 69815

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)

Upvotes: 1

Zifre
Zifre

Reputation: 26998

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.

Upvotes: 3

Charles Ma
Charles Ma

Reputation: 49131

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

Upvotes: 6

SztupY
SztupY

Reputation: 10526

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.

Upvotes: 1

C. K. Young
C. K. Young

Reputation: 222973

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

Upvotes: 3

Related Questions