Hacker News new | past | comments | ask | show | jobs | submit login

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).



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...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: