std::initializer_list in C++, Caveats and Improvements -- Bartłomiej Filipek
Delving into the "how it works" and "why use it" of std::initializer_list...
std::initializer_list in C++, Caveats and Improvements
by Bartłomiej Filipek
From the article:
In this article, you’ll learn why
std::initializer_listhas a bad reputation in C++...... We can make the following conclusion:
std::initializer_listis a “view” type; it references some implementation-dependent and a local array ofconstvalues. Use it mainly for passing into functions when you need a variable number of arguments of the same type. If you try to return such lists and pass them around, then you risk lifetime issues. Use with care.Let’s take on another limitation: ...

Visual Studio has a host of new productivity features, which you can read about in this article.
The "Safely Tome" has landed, and we have a review from the author of C++ Stories:
C++23 is done!