Is C++’s default copy-constructor inherently unsafe? Are iterators fundamentally unsafe too?
C++ copy/move ctor/assign are safe for regular value types. Regular value types behave like integers or other “regular” values. They are also safe for pointer semantic types, so long as the operation does not change what the pointer “should” point to. Pointing to something “within yourself”, or another member, is an example of where it … Read more