From Jason Turner

[bad.cast]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpv49hesvl/{from.md → to.md} +2 -21
tmp/tmpv49hesvl/{from.md → to.md} RENAMED
@@ -2,40 +2,21 @@
2
 
3
  ``` cpp
4
  namespace std {
5
  class bad_cast : public exception {
6
  public:
7
- bad_cast() noexcept;
8
- bad_cast(const bad_cast&) noexcept;
9
- bad_cast& operator=(const bad_cast&) noexcept;
10
  const char* what() const noexcept override;
11
  };
12
  }
13
  ```
14
 
15
  The class `bad_cast` defines the type of objects thrown as exceptions by
16
  the implementation to report the execution of an invalid `dynamic_cast`
17
- expression ([[expr.dynamic.cast]]).
18
-
19
- ``` cpp
20
- bad_cast() noexcept;
21
- ```
22
-
23
- *Effects:* Constructs an object of class `bad_cast`.
24
-
25
- ``` cpp
26
- bad_cast(const bad_cast&) noexcept;
27
- bad_cast& operator=(const bad_cast&) noexcept;
28
- ```
29
-
30
- *Effects:* Copies an object of class `bad_cast`.
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
39
- string ([[multibyte.strings]]), suitable for conversion and display as
40
- a `wstring` ([[string.classes]], [[locale.codecvt]])
41
-
 
2
 
3
  ``` cpp
4
  namespace std {
5
  class bad_cast : public exception {
6
  public:
7
+ // see [exception] for the specification of the special member functions
 
 
8
  const char* what() const noexcept override;
9
  };
10
  }
11
  ```
12
 
13
  The class `bad_cast` defines the type of objects thrown as exceptions by
14
  the implementation to report the execution of an invalid `dynamic_cast`
15
+ expression [[expr.dynamic.cast]].
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  ``` cpp
18
  const char* what() const noexcept override;
19
  ```
20
 
21
  *Returns:* An *implementation-defined* NTBS.
22