by bun_terminator · 2y ago · 0 comments
like c++11 and later?
C++11 isn't the most memory safe language, but C++11 is a lot safer than older versions, and C++23 is better yet. I'm expecting true memory safety in C++26 (time will tell), but it will be opt-in profiles which isn't ideal.
I've written bugs that would have been caught by the compiler in a memory-safe language. I think the last time was maybe in 2012 or 2013? I still write plenty of bugs today but they're almost all logic errors that nothing (short of AI tools) could have caught.
Oops, null smart pointer.
Oops, UB made my reference null.
Oops, invalidated iterator.
Oops, aliased pointers.
Oops, race condition.
Oops, recursion.
Oops, moved-from object is partially formed.