From Jason Turner

[syserr.errcode.modifiers]

Diff to HTML by rtfpessoa

tmp/tmpjjo_0gk1/{from.md → to.md} RENAMED
@@ -11,11 +11,16 @@ template<class ErrorCodeEnum>
11
  error_code& operator=(ErrorCodeEnum e) noexcept;
12
  ```
13
 
14
  *Constraints:* `is_error_code_enum_v<ErrorCodeEnum>` is `true`.
15
 
16
- *Ensures:* `*this == make_error_code(e)`.
 
 
 
 
 
17
 
18
  *Returns:* `*this`.
19
 
20
  ``` cpp
21
  void clear() noexcept;
 
11
  error_code& operator=(ErrorCodeEnum e) noexcept;
12
  ```
13
 
14
  *Constraints:* `is_error_code_enum_v<ErrorCodeEnum>` is `true`.
15
 
16
+ *Effects:* Equivalent to:
17
+
18
+ ``` cpp
19
+ error_code ec = make_error_code(e);
20
+ assign(ec.value(), ec.category());
21
+ ```
22
 
23
  *Returns:* `*this`.
24
 
25
  ``` cpp
26
  void clear() noexcept;