Merge pull request #1191 from lioncash/noexcept

hle/result: Make ResultVal's move constructor as noexcept
master
bunnei 2018-08-28 12:27:48 +07:00 committed by GitHub
commit d8ba202070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -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()) { if (!o.empty()) {
new (&object) T(std::move(o.object)); new (&object) T(std::move(o.object));
} }