From Jason Turner

[logic.error]

Diff to HTML by rtfpessoa

tmp/tmpficy_892/{from.md → to.md} RENAMED
@@ -2,27 +2,27 @@
2
 
3
  ``` cpp
4
  namespace std {
5
  class logic_error : public exception {
6
  public:
7
- explicit logic_error(const string& what_arg);
8
- explicit logic_error(const char* what_arg);
9
  };
10
  }
11
  ```
12
 
13
  The class `logic_error` defines the type of objects thrown as exceptions
14
  to report errors presumably detectable before the program executes, such
15
  as violations of logical preconditions or class invariants.
16
 
17
  ``` cpp
18
- logic_error(const string& what_arg);
19
  ```
20
 
21
  *Ensures:* `strcmp(what(), what_arg.c_str()) == 0`.
22
 
23
  ``` cpp
24
- logic_error(const char* what_arg);
25
  ```
26
 
27
  *Ensures:* `strcmp(what(), what_arg) == 0`.
28
 
 
2
 
3
  ``` cpp
4
  namespace std {
5
  class logic_error : public exception {
6
  public:
7
+ constexpr explicit logic_error(const string& what_arg);
8
+ constexpr explicit logic_error(const char* what_arg);
9
  };
10
  }
11
  ```
12
 
13
  The class `logic_error` defines the type of objects thrown as exceptions
14
  to report errors presumably detectable before the program executes, such
15
  as violations of logical preconditions or class invariants.
16
 
17
  ``` cpp
18
+ constexpr logic_error(const string& what_arg);
19
  ```
20
 
21
  *Ensures:* `strcmp(what(), what_arg.c_str()) == 0`.
22
 
23
  ``` cpp
24
+ constexpr logic_error(const char* what_arg);
25
  ```
26
 
27
  *Ensures:* `strcmp(what(), what_arg) == 0`.
28