[ox] Remove std::move calls that suppressed copy elision

This commit is contained in:
2021-12-01 19:55:09 -06:00
parent 37664ede05
commit 163fcf1785
6 changed files with 8 additions and 12 deletions

View File

@@ -231,7 +231,7 @@ Result<Buffer> writeMC(T *val) noexcept {
MetalClawWriter writer(reinterpret_cast<uint8_t*>(buff.data()), buff.size());
oxReturnError(model(&writer, val));
buff.resize(writer.size());
return std::move(buff);
return buff;
}
template<typename T>