Loading…
CppCon 2018 has ended
Back To Schedule
Monday, September 24 • 15:15 - 16:15
The Nightmare of Initialization in C++

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

After introducing uniform initialization with C++11, there are at least 5 ways in C++ to initialize an object.
Each have them has different rules, different effects, and different usage depending on the context and goals.
The situation is so confusing that today nobody can tell anymore which type of initialization to teach to beginners.
That's nothing but a disaster.

This talk will discuss the different forms of initialization, compare them to know when to use which, discuss what changed with C++14 and C++17 and what still has to change, and finally what to teach now to beginners.
I promise a source of trouble and discussion.

Speakers
avatar for Nicolai Josuttis

Nicolai Josuttis

IT Communication
Nicolai Josuttis (http://www.josuttis.com) is well known in the programming community because he not only speaks and writes with authority (being the (co-)author of the world-wide best sellers The C++ Standard Library (www.cppstdlib.com), C++ Templates (www.tmplbook.com), C++1... Read More →


Monday September 24, 2018 15:15 - 16:15 PDT
Steamboat (403)
  • Object Model