4 ms·
It meshes well with move ctors at least, since objects need a "dead state" they can be put into when moved from.
by edflsafoiewq 5y ago
It meshes well with move ctors at least, since objects need a "dead state" they can be put into when moved from.
- Koshkin 5y agoThis is incorrect. You are not supposed to make any assumptions about the state of an object that has been destructed or moved from. A “dead state” would still be a state, whereas a “dead object” should be thought of as having no state at all, i.e. not being an object any longer.