News for hackers. Stuff that matters.
Re:My favourite C++ footgun by fpoling on Wednesday June 23, 2021 @03:46PM (#27609158)
In practice I have not found that running destructor is problematic. In many cases the destructor is the default one that just destructs the fields. When the destructor should be non-default the constructor can leave the object in the move out state either explicitly or via hacks like using T tmp(std::move((*this)) on the error return in the constructor.

There are no comments on this comment yet.