3 ms·
How do you prevent an object from being used after you `std::move()` it? --- Reply to moomin: The type system's intrinsic expressiveness limits the kinds of
by catnaroek 10y ago
How do you prevent an object from being used after you `std::move()` it?
---
Reply to moomin:
The type system's intrinsic expressiveness limits the kinds of verification tricks you can “teach” it.
- moomin 10y agoYou teach the compiler to treat it as an error. The point being that this isn't practically available in C++ and is mandatory in Rust.