From Jason Turner

[bad.typeid]

Diff to HTML by rtfpessoa

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