|
|
|
|
|
by Rusky
2446 days ago
|
|
This is not correct; moves must leave the value in a valid state, because its destructor will still run. The correct version is actually the same as Rust's: template <class T>
void drop(T) {}
(Moving into a local in `drop(T&&)` also works.) |
|