|
|
@ -206,7 +206,7 @@ public:
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ResultVal(const ResultVal& o) : result_code(o.result_code) {
|
|
|
|
ResultVal(const ResultVal& o) noexcept : result_code(o.result_code) {
|
|
|
|
if (!o.empty()) {
|
|
|
|
if (!o.empty()) {
|
|
|
|
new (&object) T(o.object);
|
|
|
|
new (&object) T(o.object);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -224,7 +224,7 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ResultVal& operator=(const ResultVal& o) {
|
|
|
|
ResultVal& operator=(const ResultVal& o) noexcept {
|
|
|
|
if (this == &o) {
|
|
|
|
if (this == &o) {
|
|
|
|
return *this;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -244,7 +244,7 @@ public:
|
|
|
|
return *this;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ResultVal& operator=(ResultVal&& o) {
|
|
|
|
ResultVal& operator=(ResultVal&& o) noexcept {
|
|
|
|
if (this == &o) {
|
|
|
|
if (this == &o) {
|
|
|
|
return *this;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|