3 ms·
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 de
by fpoling 5y ago
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.