From Jason Turner

[optional.bad.access]

Diff to HTML by rtfpessoa

tmp/tmp8avpyprg/{from.md → to.md} RENAMED
@@ -3,20 +3,21 @@
3
  ``` cpp
4
  namespace std {
5
  class bad_optional_access : 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_optional_access` defines the type of objects thrown as
14
  exceptions to report the situation where an attempt is made to access
15
  the value of an optional object that does not contain a value.
16
 
17
  ``` cpp
18
- const char* what() const noexcept override;
19
  ```
20
 
21
- *Returns:* An *implementation-defined* NTBS.
 
22
 
 
3
  ``` cpp
4
  namespace std {
5
  class bad_optional_access : public exception {
6
  public:
7
  // see [exception] for the specification of the special member functions
8
+ constexpr const char* what() const noexcept override;
9
  };
10
  }
11
  ```
12
 
13
  The class `bad_optional_access` defines the type of objects thrown as
14
  exceptions to report the situation where an attempt is made to access
15
  the value of an optional object that does not contain a value.
16
 
17
  ``` cpp
18
+ constexpr const char* what() const noexcept override;
19
  ```
20
 
21
+ *Returns:* An *implementation-defined* NTBS, which during constant
22
+ evaluation is encoded with the ordinary literal encoding [[lex.ccon]].
23