Merge pull request #1191 from lioncash/noexcept
hle/result: Make ResultVal's move constructor as noexcept
This commit is contained in:
commit
d8ba202070
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue