3 ms·
When you say you must, do you mean that it’s best practice, that or that this is UB or similar?
by catlifeonmars 1y ago
When you say you must, do you mean that it’s best practice, that or that this is UB or similar?
- motorest 1y ago> When you say you must, do you mean that it’s best practice, that or that this is UB or similar? I'm not OP, but the only requirements that C++ imposed on moved-from objects is that they remain valid objects. Meaning, they can be safely destroyed or reused by reassigning or even moving other objects into them. I have no idea what OP could be possibly referring to.