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.
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
| 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 |
|