tmp/tmpe6k2uco3/{from.md → to.md}
RENAMED
|
@@ -24,11 +24,11 @@ number reported by the operating system. Errors arising from within the
|
|
| 24 |
stream library would typically be reported as
|
| 25 |
`error_code(io_errc::stream,
|
| 26 |
iostream_category())`.
|
| 27 |
|
| 28 |
``` cpp
|
| 29 |
-
explicit failure(const string& msg,
|
| 30 |
```
|
| 31 |
|
| 32 |
*Effects:* Constructs an object of class `failure` by constructing the
|
| 33 |
base class with `msg` and `ec`.
|
| 34 |
|
|
@@ -151,11 +151,11 @@ namespace std {
|
|
| 151 |
class ios_base::Init {
|
| 152 |
public:
|
| 153 |
Init();
|
| 154 |
~Init();
|
| 155 |
private:
|
| 156 |
-
static int init_cnt; // exposition
|
| 157 |
};
|
| 158 |
}
|
| 159 |
```
|
| 160 |
|
| 161 |
The class `Init` describes an object whose construction ensures the
|
|
|
|
| 24 |
stream library would typically be reported as
|
| 25 |
`error_code(io_errc::stream,
|
| 26 |
iostream_category())`.
|
| 27 |
|
| 28 |
``` cpp
|
| 29 |
+
explicit failure(const string& msg, const error_code& ec = io_errc::stream);
|
| 30 |
```
|
| 31 |
|
| 32 |
*Effects:* Constructs an object of class `failure` by constructing the
|
| 33 |
base class with `msg` and `ec`.
|
| 34 |
|
|
|
|
| 151 |
class ios_base::Init {
|
| 152 |
public:
|
| 153 |
Init();
|
| 154 |
~Init();
|
| 155 |
private:
|
| 156 |
+
static int init_cnt; // exposition only
|
| 157 |
};
|
| 158 |
}
|
| 159 |
```
|
| 160 |
|
| 161 |
The class `Init` describes an object whose construction ensures the
|