Question

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

Was it helpful?

Solution

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!

OTHER TIPS

GCC has some of it supported. See here.

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

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

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.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top