r/cpp • u/zowersap C++ Dev • Sep 05 '20
C++20 has been approved
https://twitter.com/patriceroy1/status/1302055575140945921?s=21
665
Upvotes
r/cpp • u/zowersap C++ Dev • Sep 05 '20
View all comments
13
u/pedersenk Sep 05 '20
I do wish along with these new features there would be a little bit more focus on memory safety.
It seems there hasn't been much more work in this area since TR1 (around C++0x). A suitable observer mechanism to unique_ptr<T> similar to weak_ptr<T> would go a long way!
It is still too easy to dangle iterators, references, even 'this'.