Merge pull request #1191 from lioncash/noexcept

hle/result: Make ResultVal's move constructor as noexcept
This commit is contained in:
bunnei
2018-08-28 12:27:48 -04:00
committed by GitHub

View File

@ -227,7 +227,7 @@ public:
}
}
ResultVal(ResultVal&& o) : result_code(o.result_code) {
ResultVal(ResultVal&& o) noexcept : result_code(o.result_code) {
if (!o.empty()) {
new (&object) T(std::move(o.object));
}