In-class Member Initialisation: From C++11 to C++20

1 · Bartłomiej Filipek · March 2, 2020, 9:21 a.m.
With modern C++ and with each revision of the standard we get more comfortable way to initialise fields of a class: both static and non-static: there’s non-static data member initialisation (from C++11) and also inline variables (for static members since C++17). In this blog post, you’ll learn how to use the syntax and how it changed over the years from C++11, through C++14, C++17 until C++20. Read more......