|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
error_condition::operator= | ||||
| Non-member functions | ||||
(until C++20)(until C++20)(C++20) | ||||
| Helper classes | ||||
template<class ErrorConditionEnum> error_condition& operator=( ErrorConditionEnum e)noexcept; | (1) | (since C++11) |
error_condition& operator=(const error_condition& other)=default; | (2) | (since C++11) (implicitly declared) |
error_condition& operator=( error_condition&& other)=default; | (3) | (since C++11) (implicitly declared) |
Assigns contents to an error condition.
e. Effectively callsmake_error_condition that is only found byargument-dependent lookup fore and then replaces*this with the result. This overload participates in overload resolution only ifstd::is_error_condition_enum<ErrorConditionEnum>::value istrue.other to*this.| e | - | error condition enum |
| other | - | another error condition to assign with |
*this.
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3629 | C++11 | onlystd::make_error_condition overloads were used | ADL-found overloads are used |