Thread: C++0x compilers

  1. #1
    Registered User
    Join Date
    Jan 2007

    C++0x compilers

    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?

  2. #2
    Registered User
    Join Date
    Oct 2008
    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.

  3. #3
    The larch
    Join Date
    May 2006
    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.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  4. #4
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    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.


  5. #5

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  2. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  3. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 08:03 AM
  4. 32bit 16bit compilers
    By Benzakhar in forum A Brief History of
    Replies: 1
    Last Post: 03-02-2004, 04:43 PM
  5. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 04:21 PM