4 ms·
Couldn't you still use move semantics without std::move? You'd just have to write your own cast to an rvalue-reference.
by polio 4y ago
Couldn't you still use move semantics without std::move? You'd just have to write your own cast to an rvalue-reference.
- arinlen 4y ago> Couldn't you still use move semantics without std::move? That's correct, std::move is just syntactic sugar to cast objects to revalue references, i.e., the sort of object that is expected to be moved around.