From Jason Turner

[syserr.errcat.objects]

Diff to HTML by rtfpessoa

tmp/tmprn8erouv/{from.md → to.md} RENAMED
@@ -24,16 +24,17 @@ the same object.
24
  *Remarks:* The object’s `equivalent` virtual functions shall behave as
25
  specified for class `error_category`. The object’s `name` virtual
26
  function shall return a pointer to the string `"system"`. The object’s
27
  `default_error_condition` virtual function shall behave as follows:
28
 
29
- If the argument `ev` corresponds to a POSIX `errno` value `posv`, the
30
- function shall return `error_condition(posv, generic_category())`.
31
- Otherwise, the function shall return
32
- `error_condition(ev, system_category())`. What constitutes
 
33
  correspondence for any given operating system is unspecified.
34
 
35
  [*Note 1*: The number of potential system error codes is large and
36
- unbounded, and some may not correspond to any POSIX `errno` value. Thus
37
- implementations are given latitude in determining
38
  correspondence. — *end note*]
39
 
 
24
  *Remarks:* The object’s `equivalent` virtual functions shall behave as
25
  specified for class `error_category`. The object’s `name` virtual
26
  function shall return a pointer to the string `"system"`. The object’s
27
  `default_error_condition` virtual function shall behave as follows:
28
 
29
+ If the argument `ev` is equal to 0, the function returns
30
+ `error_condition(0, generic_category())`. Otherwise, if `ev` corresponds
31
+ to a POSIX `errno` value `pxv`, the function returns
32
+ `error_condition(pxv, generic_category())`. Otherwise, the function
33
+ returns `error_condition(ev, system_category())`. What constitutes
34
  correspondence for any given operating system is unspecified.
35
 
36
  [*Note 1*: The number of potential system error codes is large and
37
+ unbounded, and some might not correspond to any POSIX `errno` value.
38
+ Thus implementations are given latitude in determining
39
  correspondence. — *end note*]
40