tags:

views:

296

answers:

4

What is the best compiler to experiment with C++0x features? I have been experimenting with GNU g++ 4.4.

+1  A: 

ConceptGCC (wiki) was made for that purpose, if I am not mistaken.

michalmocny
+5  A: 

Definitely GCC Trunk. ConceptGCC misses many features GCC trunk has. It is being merged into GCC currently though. It has all these features, including the new auto-typed variables (no new function declaration syntax yet though): http://gcc.gnu.org/projects/cxx0x.html .

There is a GCC branch containing partial lambda support, which also contains other C++0x features. I would recommend you to try that one out too. It's in use on #geordi at irc.freenode.org, you can experiment with it there.

Johannes Schaub - litb
+3  A: 

Comeau - just for trying it online

peterchen
for a list of the C++0x features supported by Comeau 4.3.10.1 Beta: http://www.comeaucomputing.com/43101features.html
Michael Burr
+1  A: 

It's probably not the best for C++0x experimentation, but for people who are MSVC oriented, there's a "Community Tech Preview" (CTP) of VS2010 which contains a preview of VC10 that has some parts of C++0x implemented (note that VC10 will not have the full set of C++0x changes implemented even when VC10 is released):

http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&displaylang=en

Some details on what's new in the VC10 CTP:

As noted in the above article, "The Visual C++ compiler in the Microsoft Visual Studio 2010 September Community Technology Preview (CTP) contains support for four C++0x language features, namely:"

  • lambdas,
  • auto,
  • static_assert,
  • rvalue references
Michael Burr