|
|
|
|
|
by nitnelave
891 days ago
|
|
It's kinda what Rust forces you to do, except that std::move is implied. Anything taken by value is equivalent to taking by && unless the type is explicitly marked as Copy (i.e. it can be trivially copied and the copies are implicit). But yeah, in a c++ codebase, good modern practices are often verbose and clunky. |
|