mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 01:52:29 -06:00
ResultCode: use default copy assignment
Our definition of the copy assignment is equivalent to the default one, but prevents the type being trivially copyable
This commit is contained in:
parent
d373a6430d
commit
28513c5177
1 changed files with 1 additions and 4 deletions
|
@ -216,10 +216,7 @@ union ResultCode {
|
||||||
: raw(description.FormatValue(description_) | module.FormatValue(module_) |
|
: raw(description.FormatValue(description_) | module.FormatValue(module_) |
|
||||||
summary.FormatValue(summary_) | level.FormatValue(level_)) {}
|
summary.FormatValue(summary_) | level.FormatValue(level_)) {}
|
||||||
|
|
||||||
constexpr ResultCode& operator=(const ResultCode& o) {
|
constexpr ResultCode& operator=(const ResultCode& o) = default;
|
||||||
raw = o.raw;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
constexpr bool IsSuccess() const {
|
constexpr bool IsSuccess() const {
|
||||||
return is_error.ExtractValue(raw) == 0;
|
return is_error.ExtractValue(raw) == 0;
|
||||||
|
|
Loading…
Reference in a new issue