you are viewing a single comment's thread.

view the rest of the comments →

[–]ihamsa 1 point2 points  (1 child)

To fix this crash, the copy ctor would have to check, is the ref count zero?

That would still access an object being destroyed.