简体   繁体   中英

Compiler support for upcoming C++0x

Is there a compiler that has good support for the new C++0x?

I use GCC but unfortunately the current version 4.4 has a poor support for the new features.

The Apache Standard C++ Library project maintains a wiki page of major compilers' C++0x support .

Here are links to the vendors' pages describing their C++0x support:

I'm afraid gcc is probably the best you're going to get at this stage.

There's a list of features and supported compilers here:

http://wiki.apache.org/stdcxx/C++0xCompilerSupport

The only compiler that has an implementation of concepts is conceptgcc (and even that is incomplete - but it is good enough to get a good feel for the feature).
Visual C++ 2010 Beta has some useful C++0x support - you can play with lambdas, rvalue references, auto, decltype.
Comeau C++ or the EDG based compilers are surprisingly not as advanced I would have expected them to be in their implementation of C++0x.
GCC 4.4 (variadic templates, initializer lists, inline namespaces, autor, decltype) probably has the most features implemented out of any of the other compilers, but is lagging in concepts and lambdas (separate branch development is ongoing).

Scott Meyers has a nice and detailed comparison here:

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

GCC 4.6, released 3/25/11, supports most of the non-concurrency-related features of C++0x . Now that C++0x is no longer in flux compiler support may progress a little more quickly.

Comeau 编译器的当前beta 版本似乎具有良好的 C++0x 支持。

GCC 4.4 does at least have some of the cool features ( auto , variadic templates, rvalue references, etc.). There are also development branches for concepts and lambdas.

See C++0x support in GCC .

C++0x is still not ready, so don't expect to have it supported atm. GCC 4.4 and Visual C++ 2010 are good candidates (they have some of the most anticipated new feautres like lambdas and auto) that get you started, but the standard isn't finished yet.

如果你在 linux/unix 上,我推荐英特尔编译器,它比 GCC 得到更好的支持并且生成更快/更小的二进制文件(我通常使用它可以获得 10% 的免费性能提升)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM