From Jason Turner

[invalid.argument]

Diff to HTML by rtfpessoa

tmp/tmpb1nu_ba9/{from.md → to.md} RENAMED
@@ -2,26 +2,26 @@
2
 
3
  ``` cpp
4
  namespace std {
5
  class invalid_argument : public logic_error {
6
  public:
7
- explicit invalid_argument(const string& what_arg);
8
- explicit invalid_argument(const char* what_arg);
9
  };
10
  }
11
  ```
12
 
13
  The class `invalid_argument` defines the type of objects thrown as
14
  exceptions to report an invalid argument.
15
 
16
  ``` cpp
17
- invalid_argument(const string& what_arg);
18
  ```
19
 
20
  *Ensures:* `strcmp(what(), what_arg.c_str()) == 0`.
21
 
22
  ``` cpp
23
- invalid_argument(const char* what_arg);
24
  ```
25
 
26
  *Ensures:* `strcmp(what(), what_arg) == 0`.
27
 
 
2
 
3
  ``` cpp
4
  namespace std {
5
  class invalid_argument : public logic_error {
6
  public:
7
+ constexpr explicit invalid_argument(const string& what_arg);
8
+ constexpr explicit invalid_argument(const char* what_arg);
9
  };
10
  }
11
  ```
12
 
13
  The class `invalid_argument` defines the type of objects thrown as
14
  exceptions to report an invalid argument.
15
 
16
  ``` cpp
17
+ constexpr invalid_argument(const string& what_arg);
18
  ```
19
 
20
  *Ensures:* `strcmp(what(), what_arg.c_str()) == 0`.
21
 
22
  ``` cpp
23
+ constexpr invalid_argument(const char* what_arg);
24
  ```
25
 
26
  *Ensures:* `strcmp(what(), what_arg) == 0`.
27