From e0abec425920183be7e4653bb07b2867dca03c3c Mon Sep 17 00:00:00 2001 From: Oleksandr Senkovych Date: Wed, 28 Sep 2016 11:23:18 +0200 Subject: [PATCH] Remove mode string from ifstream constructor in R.12 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4b2fb57..a3dd5ce 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8197,7 +8197,7 @@ The allocation of `buf` may fail and leak the file handle. void f(const string& name) { - ifstream f{name, "r"}; // open the file + ifstream f{name}; // open the file vector buf(1024); // ... }