tmp/tmpuwik2176/{from.md → to.md}
RENAMED
|
@@ -5,13 +5,14 @@ identify the source and encoding of a particular category of error code.
|
|
| 5 |
Classes may be derived from `error_category` to support categories of
|
| 6 |
errors in addition to those defined in this document. Such classes shall
|
| 7 |
behave as specified in subclause [[syserr.errcat]].
|
| 8 |
|
| 9 |
[*Note 1*: `error_category` objects are passed by reference, and two
|
| 10 |
-
such objects are equal if they have the same address.
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
namespace std {
|
| 16 |
class error_category {
|
| 17 |
public:
|
|
|
|
| 5 |
Classes may be derived from `error_category` to support categories of
|
| 6 |
errors in addition to those defined in this document. Such classes shall
|
| 7 |
behave as specified in subclause [[syserr.errcat]].
|
| 8 |
|
| 9 |
[*Note 1*: `error_category` objects are passed by reference, and two
|
| 10 |
+
such objects are equal if they have the same address. If there is more
|
| 11 |
+
than a single object of a custom `error_category` type, such equality
|
| 12 |
+
comparisons can evaluate to `false` even for objects holding the same
|
| 13 |
+
value. — *end note*]
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
namespace std {
|
| 17 |
class error_category {
|
| 18 |
public:
|