3 ms·
A "move" of a POD value type is still a copy and std::move/std::forward don't do anything (same in Rust for Copy traits). Rather the Rust feature that's missin
by kllrnohj 4y ago
A "move" of a POD value type is still a copy and std::move/std::forward don't do anything (same in Rust for Copy traits).
Rather the Rust feature that's missing here is the compiler automatically converting pass-by-(move)value to a pass-by-reference under the covers.