tags:

views:

1028

answers:

6

Is where any C++ compiler that supports C++0x features already?

+8  A: 

Both the 2008 Visual C++ 'Feature Pack' and g++ support some features.

The list of C++0x features supported by g++.


The Visual C++ 2008 Feature Pack ... includes an implementation of TR1. Portions of TR1 are scheduled for adoption in the upcoming C++0x standard as the first major addition to the ISO 2003 standard C++ library. Our implementation includes a number of important features such as:

  • Smart pointers
  • Regular expression parsing
  • New containers (tuple, array, unordered set, etc)
  • Sophisticated random number generators
  • Polymorphic function wrappers
  • Type traits
  • And more!
Pete Kirkham
I'm pretty sure VS2008 doesn't support any C++0x features. do you have any references for that?
shoosh
You made that comment the same minute I added the link.
Pete Kirkham
+9  A: 

GCC has some of it supported. See here.

Andy
+4  A: 

There are compilers that partially support C++0x, but there can't be full support yet because the final C++0x has not yet been standardized.

Joonas Pulakka
+6  A: 
  • GCC 4.4 (not released yet) would support some features like auto.
  • GCC 4.3 has not bad tr1 support and some feature like Variadic templates.
  • Latest Intel compiler supports quite well some C++0x features: it already has support of auto and lambda function.
Artyom
4.2 has complete tr1 support, I believe the 4.1 and 4.0 do as well.
caspin
Not really, even 4.3 has "regex" support and you can even compilebut regex_match always returns false... it is in GCC to do list. I think in 4.4 dev. branch this should be ok.
Artyom
+7  A: 

Microsoft's Visual Studio 2010 CTP (Community Technology Preview) contains support for four C++0x features namely lambdas, auto, static_assert, and rvalue references.

You can download the VPC image here, make sure to read the bit about accounting for the January 1 2009 expiry date (this blog post is referenced).

Peter McGrattan
If possible please explain downvote thanks
Peter McGrattan
Anyone mentioning anything other than g++ gets downvoted by fanboys. Compare my post vs Andy's - both have same link, but also mention VC++, so get down votes.
Pete Kirkham
@Pete: Thanks I wasn't sure if I had got something incorrect. I thought I'd add a reference to VS2010 since no one else had yet mentioned it. Irrelevantly I do also use g++ as when on linux - surely there is enough room for both especially when answering questions.
Peter McGrattan
+1  A: 

Scott Meyers has a nice detailed summary of C++0x support across some common compilers here:

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

sdt