Preparation

In this tutorial, we will transform a short program from legacy C++ into C++11, and learn a few of the new features along the way.

The tutorial is designed for you to follow along hands-on: We will alternate between meeting a feature and integrating it into our code. If you want to get your hands dirty, the presentation slides and code samples are available on

git clone https://github.com/nikolausmayer/cpp11presentation

(please use GCC/g++ ≥ 4.7) but you are not required to do so.

Disclaimer

I am not an expert in C++(11). I may or may not be able to answer technical questions.

The code examples are designed to highlight specific language features, and may not always represent best code practices or sensible program design.

If you are using Boost, you may already know much of what follows.

C++11

A superficial, cherry-picking hands-on introduction not as scary as it sounds