From Jason Turner

[range.error]

Diff to HTML by rtfpessoa

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