4 ms·
Maybe std::make_movable would have been a slightly better name, but it's so much simpler to write std::move.
by fooker 10mo ago
Maybe std::make_movable would have been a slightly better name, but it's so much simpler to write std::move.
- krior 10mo agothanks 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.
- kaashif 10mo agoThere is a difference, lots of stuff starts with make_, so lots of possible completions.
- magicalhippo 10mo agoSplit the difference with std::moveable(). Also signals it doesn't actually move, while remaining just as fast to type.
- fooker 10mo agostd::movable is a concept now! https://en.cppreference.com/w/cpp/concepts/movable.html https://en.cppreference.com/w/cpp/concepts/movable.html
- pseidemann 10mo agostd::rvalue
- bitexploder 10mo agoBut that misses too much of the semantics. It also implies ownership transfer, even if copied.