From Jason Turner

[syserr.errcat.overview]

Diff to HTML by rtfpessoa

tmp/tmp8c4h6v9o/{from.md → to.md} RENAMED
@@ -1,12 +1,12 @@
1
- #### Class `error_category` overview <a id="syserr.errcat.overview">[[syserr.errcat.overview]]</a>
2
 
3
  The class `error_category` serves as a base class for types used to
4
  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 International Standard. Such
7
- classes shall behave as specified in this subclause.
8
 
9
  [*Note 1*: `error_category` objects are passed by reference, and two
10
  such objects are equal if they have the same address. This means that
11
  applications using custom `error_category` types should create a single
12
  object of each such type. — *end note*]
@@ -24,12 +24,11 @@ namespace std {
24
  virtual bool equivalent(int code, const error_condition& condition) const noexcept;
25
  virtual bool equivalent(const error_code& code, int condition) const noexcept;
26
  virtual string message(int ev) const = 0;
27
 
28
  bool operator==(const error_category& rhs) const noexcept;
29
- bool operator!=(const error_category& rhs) const noexcept;
30
- bool operator<(const error_category& rhs) const noexcept;
31
  };
32
 
33
  const error_category& generic_category() noexcept;
34
  const error_category& system_category() noexcept;
35
  }
 
1
+ #### Overview <a id="syserr.errcat.overview">[[syserr.errcat.overview]]</a>
2
 
3
  The class `error_category` serves as a base class for types used to
4
  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. This means that
11
  applications using custom `error_category` types should create a single
12
  object of each such type. — *end note*]
 
24
  virtual bool equivalent(int code, const error_condition& condition) const noexcept;
25
  virtual bool equivalent(const error_code& code, int condition) const noexcept;
26
  virtual string message(int ev) const = 0;
27
 
28
  bool operator==(const error_category& rhs) const noexcept;
29
+ strong_ordering operator<=>(const error_category& rhs) const noexcept;
 
30
  };
31
 
32
  const error_category& generic_category() noexcept;
33
  const error_category& system_category() noexcept;
34
  }