C++11 : Can anyone suggest some books and compilers? Is it a good idea to use c++11 in my projects? Does qt creator 2.5 support c++11?
c++, c++11
Solution
Your choice of compilers will depend on the platform you're developing for.
Gcc 4.7 and Clang seem to support the most C++11 features but I think their Windows support is mostly limited to mingw and I believe clang is limited even there. Intel C++ doesn't have as much C++11 support as gcc or clang, but more than VC++ and it supports Windows well. VC++ 11 is a great compiler and has great Windows support, but unfortunately it's at the back of the pack today with regard to C++11 features, missing variadic templates, initializer lists and uniform initialization, user-defined literals, constexpr, the new string literals, defaulting/deleting functions, delegating/inheriting ctors, template type aliases, etc.
If you're targeting Linux then gcc obviously has great support for that, and clang isn't too far back I don't think. If you're targeting a BSD or OS X then Clang is the obvious choice.
If you're targeting multiple platforms then you'll just have to limit yourself to the subset of C++11 that works on all your compilers.
C++11 compiler support: http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport
C++11 books have just started to come out. There's a new edition of The C++ Standard Library: A Tutorial and Reference. C++ Concurrency In Action covers the new memory model, multi-threading, and atomics stuff pretty thoroughly. As far as I'm aware those are the only ones so far. There are plenty of articles and things available online though, which ought to be sufficient to get started:
Articles and papers
- The C++11 FAQ
- Elements of Modern C++ Style
- The C++ Standard draft on GitHub
Conferences
- Going Native 2012
- C++Now!
It's a great idea to use C++11, so long as lack of support doesn't prevent you from doing so.
Qt Creator 2.5 does have some support for C++11: http://labs.qt.nokia.com/2012/03/15/qt-creator-2-5-beta/
Problem
As of right now may 23 2012, I want to start coding with C++11 and use it in all my projects, cuz I see many new features I really like. But, none of the compilers I have support anything from C++11. Can anyone suggest some books and compilers? Is it a good idea to use c++11 in my projects? Does qt creator 2.5 support c++11?