Remove mode string from ifstream constructor in R.12

pull/746/head
Oleksandr Senkovych 9 years ago
parent 2183f77ac7
commit e0abec4259

@ -8197,7 +8197,7 @@ The allocation of `buf` may fail and leak the file handle.
void f(const string& name) void f(const string& name)
{ {
ifstream f{name, "r"}; // open the file ifstream f{name}; // open the file
vector<char> buf(1024); vector<char> buf(1024);
// ... // ...
} }

Loading…
Cancel
Save