Runar Ovesen Hjerpbakk

Science-based software development

C++ - Where are we headed?

Hubert Matthews

Best of C++ 98/03

Destructors: “You cannot not call them”!

“Templates are fun.” More powerful than generics, with fancier errors and longer build times. “It can work”.

What makes C++ 11/14 different?

star

Get out of the way of the compiler. Use moveable and copyable types (e.g., not raw pointers).

Optimisation hierarchy (emplace, move, copy).

“It’s a lovely little language now.”

Hello F# types, kinda. No more Mars-crashing. Cannot add kg to m, but kg + lbs is OK.

star

In the future we might even get better templates, perhaps with similar where clauses as in C# generics.

star

The future

“It’s not your granddads C++”

star