To be Modern or Not
A checklist of modern C++ habits since C++11, linking to my notes on constructors, smart pointers, templates, lambdas and concurrency.

C++ has changed a lot since C++11 and it still continues. I shared some of the basic important topics before, but I wish to add a summary here:
- Use non-static data member initializers instead of the old way. (Why nonstatic data initialization is important)
- Delete unwanted constructors with the delete keyword.
- If you want the compiler to generate a constructor for you, the
defaultkeyword helps you. - Delegating one constructor to another constructor of the same class is easy in modern C++.
- If your class manages a resource, provide copy constructors.
- Copy constructor is not enough! Add a move constructor.
- std::move is your new helper.
- Never use C-style casting.
- Always use smart pointers for owning pointers.
- Prefer unique_ptr if the object has only one owner.
- shared_ptr is the best way if the ownership is shared.
- Use weak_ptr to watch a shared pointer without increasing its reference counter.
- Use enum class instead of the old enum type.
- To create a function which can run at compile time, learn constexpr.
- std::initializer_list is the basic list type which is generated by the compiler.
- The using keyword is the way to inherit the constructors of the base class.
- Pure virtual methods are declared with
= 0. - Make the method virtual if you wish to override it in the child.
- final is the way to stop this override process.
- Never forget the override keyword.
- Virtual inheritance is important on diamond inheritance.
- You shouldn’t throw an exception from a destructor. Destructors are
noexceptby default, so it ends withstd::terminate. - Templates are important.
- Non-type templates can carry the size of arrays.
- Learn how to forward a parameter.
- Variadic templates use
std::forward. - Lambda is everything.
- Lambdas are function objects.
- Learn concurrency.
- Mutex is the way to protect shared variables.
- Atomics come with the new memory model.
Update (2026): This list is from the C++17 days. Since then C++20 brought concepts, ranges, coroutines, modules,
std::span,std::formatandstd::jthread, and C++23 addedstd::expectedandstd::print. If you start something new today, these belong on the list too.
I hope it helps