Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ compiler that supports C++0x features?

Tags:

c++

c++11

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

like image 546
Darius Kucinskas Avatar asked Mar 18 '09 09:03

Darius Kucinskas


People also ask

What is C 0x?

C++0x is the working draft of the new C++ programming language standard. Note: C++0x is a new version of the C++ programming language standard. IBM continues to develop and implement the features of the new standard. The implementation of the language level is based on IBM's interpretation of the standard.

What compiler can be used for C?

(Actually we will use the Gnu C++ compiler, but all C programs compile using this compiler). The g++ compiler is open source, meaning you can use it for free on any project you want, including "for profit" projects.

What does this STD C ++ 0x mean?

C++0x was the working name for the new standard for C++, adding many language features that I'll cover in this series on C++11. In September 2011, C++0x was officially published as the new C++11 standard, and many compilers now provide support for some of the core C++11 features.

Is C ++ 20 fully supported?

Full supportVisual Studio 2019 supports all C++20 features through its /std:c++latest option, as of version 16.10. 0. An option /std:c++20 to enable C++20 mode is added in version 16.11. 0.


4 Answers

GCC has some of it supported. See here.

like image 162
Andy Avatar answered Oct 15 '22 10:10

Andy


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!
like image 20
Pete Kirkham Avatar answered Oct 15 '22 10:10

Pete Kirkham


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

like image 29
Peter McG Avatar answered Oct 15 '22 08:10

Peter McG


  • 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.
like image 43
Artyom Avatar answered Oct 15 '22 09:10

Artyom