← Back to context Comment by creata 7 hours ago > C++23 Rust-like move semantics can be usedWhat C++23 feature allows that? 3 comments creata Reply aw1621107 5 hours ago The closest thing I can think of is trivial relocation [0] which matches the bitwise copy + no destructor on moved-from bits of Rust's moves, but that was only added to the draft for C++26 and was removed late in the process anyways [1].[0]: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p27...[1]: https://herbsutter.com/2025/11/10/trip-report-november-2025-... cherryteastain 6 hours ago Maybe this one?https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p22... aw1621107 5 hours ago I think that's basically clarifying the conditions under which C++11-style moves can be performed.
aw1621107 5 hours ago The closest thing I can think of is trivial relocation [0] which matches the bitwise copy + no destructor on moved-from bits of Rust's moves, but that was only added to the draft for C++26 and was removed late in the process anyways [1].[0]: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p27...[1]: https://herbsutter.com/2025/11/10/trip-report-november-2025-...
cherryteastain 6 hours ago Maybe this one?https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p22... aw1621107 5 hours ago I think that's basically clarifying the conditions under which C++11-style moves can be performed.
aw1621107 5 hours ago I think that's basically clarifying the conditions under which C++11-style moves can be performed.
The closest thing I can think of is trivial relocation [0] which matches the bitwise copy + no destructor on moved-from bits of Rust's moves, but that was only added to the draft for C++26 and was removed late in the process anyways [1].
[0]: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p27...
[1]: https://herbsutter.com/2025/11/10/trip-report-november-2025-...
Maybe this one?
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p22...
I think that's basically clarifying the conditions under which C++11-style moves can be performed.