Implement move semantics for instructions that operate on Vector objects.
Example: vinsert should move the object from a register into the Vector, not copy it.
The rationale is, you can easily implement pass-by-copy using pass-by-move, but not the other way around (nope, pointers aren't the answer).
Implement move semantics for instructions that operate on
Vector
objects. Example:vinsert
should move the object from a register into theVector
, not copy it. The rationale is, you can easily implement pass-by-copy using pass-by-move, but not the other way around (nope, pointers aren't the answer).