logoalt Hacker News

fookeryesterday at 9:00 AM4 repliesview on HN

Maybe std::make_movable would have been a slightly better name, but it's so much simpler to write std::move.


Replies

magicalhippoyesterday at 11:14 AM

Split the difference with std::moveable().

Also signals it doesn't actually move, while remaining just as fast to type.

show 1 reply
bitexploderyesterday at 1:58 PM

But that misses too much of the semantics. It also implies ownership transfer, even if copied.

krioryesterday at 10:46 AM

thanks to the incredible advances in terms of developer tooling over the last 50 years (i.e. tab-autocompletion) there should be no difference in writing those two.

show 1 reply
pseidemannyesterday at 11:15 AM

std::rvalue