...

/

Limitations of New Features

Limitations of New Features

In this lesson, we’ll discuss the current limitations of non-static data member initialization.

The case with auto type deduction

Since we can declare and initialize a variable inside a class, can we also/still use auto? It seems pretty natural and follows the AAA (Almost Always Auto) Rule.



...

Almost Always Auto Rule: This term was coined by Herb Sutter. It recommends using auto-type deduction rather than writing explicit types. “Toward ...