Modern C++
A New Standard
In 2011 the new C++ standard was accepted, after many years' work. Information about the standard:
The home of standard C++ | isocpp.org |
A good overview | en.wikipedia.org/wiki/C++11 |
Bjarne Stroustrup's C++11 FAQ | www.stroustrup.com/C++11FAQ.html |
API documentation | www.cplusplus.com/reference/ |
A nice map | fearlesscoder.blogspot.com/2012/01/c11-lands.html |
After C++-11, two newer versions of the standards have been accepted: C++-14, which is a bugfix to C++11, and C++17, which adds features to both the core language and the standard library.
Compiling C++11
The recommended compiler in the course is g++
, the GNU C++ compiler. The student computers have version 4.8.1 of g++. To use the C++11 features you must give the option -std=c++11
on the command line.
Another compiler is clang++
. The student computers have version 3.4.1 of clang. To use the C++11 features you must give the option -std=c++11
on the command line.
Both compilers are almost C++11-feature complete. You can check the C++11 status att gcc.gnu.org/projects/cxx0x.html (at the bottom of the page there is a link to a page describing the status of the library) and clang.llvm.org/cxx_status.html.