From Jason Turner

[value.error.codes]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpyy27krwg/{from.md → to.md} +10 -8
tmp/tmpyy27krwg/{from.md → to.md} RENAMED
@@ -4,14 +4,16 @@ Certain functions in the C++standard library report errors via a
4
  `std::error_code` ([[syserr.errcode.overview]]) object. That object’s
5
  `category()` member shall return `std::system_category()` for errors
6
  originating from the operating system, or a reference to an
7
  *implementation-defined* `error_category` object for errors originating
8
  elsewhere. The implementation shall define the possible values of
9
- `value()` for each of these error categories. For operating systems that
10
- are based on POSIX, implementations are encouraged to define the
11
- `std::system_category()` values as identical to the POSIX `errno`
12
- values, with additional values as defined by the operating system’s
13
- documentation. Implementations for operating systems that are not based
14
- on POSIX are encouraged to define values identical to the operating
15
- system’s values. For errors that do not originate from the operating
16
- system, the implementation may provide enums for the associated values.
 
 
17
 
 
4
  `std::error_code` ([[syserr.errcode.overview]]) object. That object’s
5
  `category()` member shall return `std::system_category()` for errors
6
  originating from the operating system, or a reference to an
7
  *implementation-defined* `error_category` object for errors originating
8
  elsewhere. The implementation shall define the possible values of
9
+ `value()` for each of these error categories.
10
+
11
+ [*Example 1*: For operating systems that are based on POSIX,
12
+ implementations are encouraged to define the `std::system_category()`
13
+ values as identical to the POSIX `errno` values, with additional values
14
+ as defined by the operating system’s documentation. Implementations for
15
+ operating systems that are not based on POSIX are encouraged to define
16
+ values identical to the operating system’s values. For errors that do
17
+ not originate from the operating system, the implementation may provide
18
+ enums for the associated values. — *end example*]
19