lunduniversity.lu.se

Computer Science

Faculty of Engineering, LTH

Denna sida på svenska This page in English

C++11

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 overviewen.wikipedia.org/wiki/C++11
Bjarne Stroustrup's C++11 FAQwww.stroustrup.com/C++11FAQ.html
API documentationwww.cplusplus.com/reference/
A nice mapfearlesscoder.blogspot.com/2012/01/c11-lands.html

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.