From Jason Turner

[bad.exception]

Diff to HTML by rtfpessoa

tmp/tmpj6b75vyl/{from.md → to.md} RENAMED
@@ -5,36 +5,35 @@ namespace std {
5
  class bad_exception : public exception {
6
  public:
7
  bad_exception() noexcept;
8
  bad_exception(const bad_exception&) noexcept;
9
  bad_exception& operator=(const bad_exception&) noexcept;
10
- virtual const char* what() const noexcept;
11
  };
12
  }
13
  ```
14
 
15
- The class `bad_exception` defines the type of objects thrown as
16
- described in ([[except.unexpected]]).
 
 
17
 
18
  ``` cpp
19
  bad_exception() noexcept;
20
  ```
21
 
22
  *Effects:* Constructs an object of class `bad_exception`.
23
 
24
- *Remarks:* The result of calling `what()` on the newly constructed
25
- object is implementation-defined.
26
-
27
  ``` cpp
28
  bad_exception(const bad_exception&) noexcept;
29
  bad_exception& operator=(const bad_exception&) noexcept;
30
  ```
31
 
32
  *Effects:* Copies an object of class `bad_exception`.
33
 
34
  ``` cpp
35
- virtual const char* what() const noexcept;
36
  ```
37
 
38
  *Returns:* An *implementation-defined* NTBS.
39
 
40
  *Remarks:* The message may be a null-terminated multibyte
 
5
  class bad_exception : public exception {
6
  public:
7
  bad_exception() noexcept;
8
  bad_exception(const bad_exception&) noexcept;
9
  bad_exception& operator=(const bad_exception&) noexcept;
10
+ const char* what() const noexcept override;
11
  };
12
  }
13
  ```
14
 
15
+ The class `bad_exception` defines the type of the object referenced by
16
+ the `exception_ptr` returned from a call to `current_exception` (
17
+ [[propagation]]) when the currently active exception object fails to
18
+ copy.
19
 
20
  ``` cpp
21
  bad_exception() noexcept;
22
  ```
23
 
24
  *Effects:* Constructs an object of class `bad_exception`.
25
 
 
 
 
26
  ``` cpp
27
  bad_exception(const bad_exception&) noexcept;
28
  bad_exception& operator=(const bad_exception&) noexcept;
29
  ```
30
 
31
  *Effects:* Copies an object of class `bad_exception`.
32
 
33
  ``` cpp
34
+ const char* what() const noexcept override;
35
  ```
36
 
37
  *Returns:* An *implementation-defined* NTBS.
38
 
39
  *Remarks:* The message may be a null-terminated multibyte