Examples
stackoverflow Which constructor will trigger the move semantics?
The correct way to do this is:
Xyt::ByteArray::ByteArray(std::vector<char>&& Buf)
: Buffer(std::move(Buf))
{}
The correct way to do this is:
Xyt::ByteArray::ByteArray(std::vector<char>&& Buf)
: Buffer(std::move(Buf))
{}