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: ...

The "Safely Tome" has landed, and we have a review from the author of C++ Stories:
C++23 is done!
That little extra we might equip builder classes with:
As the blurb says, "The C++ integral and floating-types zoo"...
Speaking of off-by-six errors...