Re:A Usable C++ Dialect That Is Safe Against Memory Corruption
by Jeaye on Thursday March 15, 2018 @03:30PM
(#16595854)
Even when you use RAII, const-by-default, shared pointers, type-rich APIs, and the like, you're still using C++. That means you're still tied to C's legacy defaults (of UB) and that also means you're still using C++ value categories. If your "safe" C++ subset uses references, it can't be guaranteed to be safe (since plenty of valid code will lead to UB).
More info in the value category cheat sheet: https://github.com/jeaye/value-category-cheatsheet/blob/mast...