forked from ShuriZma/suyu
1
0
Fork 0

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
commit d8ba202070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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