News for hackers. Stuff that matters.
Re:You can't Rust that by cornstalks on Saturday March 31, 2018 @04:21PM (#16724990)
You’re using way too strong of language. A move in C++ doesn’t require the original object to be invalidated or even modified in any way. POD-ish types, for example, are “moveable” despite not being made empty or invalid after a move (their move is implemented as a copy, which is perfectly valid).
Re:You can't Rust that by MereInterest on Saturday March 31, 2018 @04:46PM (#16725100)
As an example of this, in `boost::asio`, a moved-from socket is in a valid state, and is ready to accept a new connection.

https://www.boost.org/doc/libs/1_54_0/doc/html/boost_asio/re...