3 ms·
You can delete the move constructor and the move assignment operator from a class, making it completely impossible to move its objects (other than through point
by fluoridation 2y ago
You can delete the move constructor and the move assignment operator from a class, making it completely impossible to move its objects (other than through pointer arithmetic). If you have really specific class invariants it's what you should be doing. OR, the move functions should leave the moved-from members in valid states according to your invariants.