tmp/tmppjs76hxk/{from.md → to.md}
RENAMED
|
@@ -22,11 +22,11 @@ number reported by the operating system. Errors arising from within the
|
|
| 22 |
stream library would typically be reported as
|
| 23 |
`error_code(io_errc::stream,
|
| 24 |
iostream_category())`.
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
-
explicit failure(const string& msg,
|
| 28 |
```
|
| 29 |
|
| 30 |
*Effects:* Constructs an object of class `failure` by constructing the
|
| 31 |
base class with `msg` and `ec`.
|
| 32 |
|
|
|
|
| 22 |
stream library would typically be reported as
|
| 23 |
`error_code(io_errc::stream,
|
| 24 |
iostream_category())`.
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
+
explicit failure(const string& msg, const error_code& ec = io_errc::stream);
|
| 28 |
```
|
| 29 |
|
| 30 |
*Effects:* Constructs an object of class `failure` by constructing the
|
| 31 |
base class with `msg` and `ec`.
|
| 32 |
|