I want to try out the C++0x features now that the final draft is complete.
Anyone knows what's the best compiler to use for that?
I want to try out the C++0x features now that the final draft is complete.
Anyone knows what's the best compiler to use for that?
I don't think there are any, yet. I've recently started working with C++0x on G++ but the results were really painful. Many features weren't implemented yet. Some would give errors that weren't right. Some would give errors informing me how they regretted they hadn't implemented it yet. Still others made the entire compiler crash...
I think you'll have to stick to the few C++0x features that g++ already supports.
Also, could you tell me where I can read the final draft?
Last edited by EVOEx; 04-08-2010 at 04:23 AM.
Compiler support for C++0x features.
Not sure how up-to-date it is (still lists concepts).
It also won't guarantee how correctly the features will be implemented.
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
I too think you'll be stuck with G++. Microsoft has all but stated that they have no intention of implementing some of C++10 any time soon. Comeau is still working on C++10 support and have been for a very long time.
If you grab the "MSVC10" beta, "Comeau 4.3.10" beta, and a good "G++ 4.5.0" snapshot, you can play with a few of the core language additions and get a feel for how the different compilers are handling the changes. Even then you are limited to free functions taking `rvalue references', very simple lambdas outside of templates, the new use for the `auto' keyword, and `static_assert'. (Every other core language additions is going to be tied to a particular compiler.) You can try `nullptr' on the "MSVC10" beta. You can try variadic templates on "G++ 4.5.0". (You may as well ignore this feature of C++10 until 2012 unless you really only need to support G++.) You are pretty much out of luck if you wanted to experiment with "initializer lists" or `decltype'. (Compiler support is really flaky.)
If you grab "Boost", "STLPort", or "libstdc++" you can play with most of the library only additions on any compiler.
Soma
These links are probably a little more "up to date" and accurate.
I added a link to the FCD draft.
Soma
Visual C++ Team Blog : C++0x Core Language Features In VC10: The Table
Status of Experimental C++0x Support in GCC 4.5 - GNU Project - Free Software Foundation (FSF)
http://www.open-std.org/jtc1/sc22/wg...2010/n3092.pdf