4 ms·
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 exa
by cornstalks 9y ago
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).
- MereInterest 9y agoAs 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/reference/basic_stream_socket/basic_stream_socket/overload5.html https://www.boost.org/doc/libs/1_54_0/doc/html/boost_asio/re...