Reply to comment

Start Using C++11 Now

Every major platform and compiler now supports some aspect of the new C++ standard accepted in 2011. This means it is currently possible to write code that uses some of C++11 while maintaining cross-platform compatibility.

Why should you care?

  1. By enabling C++11 compatibility with your compiler you are future proofing your code. You will be able to catch any portability errors sooner and be ready for the full move.
  2. Previously there was some risk in using C++11 (C++0x) features. The standard was not yet finalized and it was unknown how the features might change. This is no longer the case.
  3. Some features of C++11 such as auto and lambda expressions are too useful to ignore.

For an up to date list of C++11 features that are supported by various compilers, see this list maintained by Scott Meyers: http://www.aristeia.com/C++11/C++11FeatureAvailability.htm

The open source compilers are much further ahead than Microsoft's. Microsoft is making headway but some very interesting and important features such as variadic templates will not be available until sometime after VC++11.

The latest version of the standard is available for free. It's technically a draft still but is 100% correct with what the final release will be.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post PHP code. You should include <?php ?> tags.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <cpp>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.