aboutsummaryrefslogtreecommitdiff
path: root/tests/cpfile/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-12 11:20:38 (GMT)
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-12 11:20:38 (GMT)
commit943f6c3129b351946e81ef08a6a0531f828a7812 (patch)
tree40444a3d8b145a61631c819464228d2ec645fc33 /tests/cpfile/driver.cxx
parente777ee4ada2281fb207558b6173cfa7b99930caf (diff)
Add few fdstream constructor overloads
Diffstat (limited to 'tests/cpfile/driver.cxx')
-rw-r--r--tests/cpfile/driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cpfile/driver.cxx b/tests/cpfile/driver.cxx
index 5576a4f..e2ecc04 100644
--- a/tests/cpfile/driver.cxx
+++ b/tests/cpfile/driver.cxx
@@ -36,7 +36,7 @@ static const char text3[] = "XAB\r\n9";
static string
from_file (const path& f)
{
- ifdstream ifs (f, ios::binary);
+ ifdstream ifs (f, fdopen_mode::binary);
string s (ifs.read_text ());
ifs.close (); // Not to miss failed close of the underlying file descriptor.
return s;
@@ -45,7 +45,7 @@ from_file (const path& f)
static void
to_file (const path& f, const char* s)
{
- ofdstream ofs (f, ios::binary);
+ ofdstream ofs (f, fdopen_mode::binary);
ofs << s;
ofs.close ();
}