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

2020-02-13 09:32发布

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

标签: c++ c++11
6条回答
家丑人穷心不美
2楼-- · 2020-02-13 09:51

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.

查看更多
劳资没心,怎么记你
3楼-- · 2020-02-13 09:56

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!
查看更多
萌系小妹纸
4楼-- · 2020-02-13 09:56

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

查看更多
5楼-- · 2020-02-13 10:00
  • 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.
查看更多
乱世女痞
6楼-- · 2020-02-13 10:13

GCC has some of it supported. See here.

查看更多
不美不萌又怎样
7楼-- · 2020-02-13 10:16

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

查看更多
登录 后发表回答