[ox/std] Deprecate ox::move

This commit is contained in:
2021-12-01 02:55:24 -06:00
parent e0364925a3
commit 37664ede05
18 changed files with 36 additions and 32 deletions

View File

@@ -228,7 +228,7 @@ template<typename T>
Result<T> readOC(const char *json, std::size_t jsonLen) noexcept {
T val;
oxReturnError(readOC(json, jsonLen, &val));
return move(val);
return std::move(val);
}
template<typename T>

View File

@@ -154,7 +154,7 @@ Result<Buffer> writeOC(T *val) noexcept {
const auto str = Json::writeString(jsonBuilder, writer.m_json);
Buffer buff(str.size() + 1);
memcpy(buff.data(), str.c_str(), str.size() + 1);
return move(buff);
return std::move(buff);
}
}