diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-12 13:20:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-12 13:20:38 +0200 |
commit | 943f6c3129b351946e81ef08a6a0531f828a7812 (patch) | |
tree | 40444a3d8b145a61631c819464228d2ec645fc33 /tests/fdstream/driver.cxx | |
parent | e777ee4ada2281fb207558b6173cfa7b99930caf (diff) |
Add few fdstream constructor overloads
Diffstat (limited to 'tests/fdstream/driver.cxx')
-rw-r--r-- | tests/fdstream/driver.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx index 58b7012..748259e 100644 --- a/tests/fdstream/driver.cxx +++ b/tests/fdstream/driver.cxx @@ -92,7 +92,7 @@ static duration write_time (const path& p, const T& s, size_t n) { timestamp t (system_clock::now ()); - S os (p.string (), ofstream::out); + S os (p.string ()); os.exceptions (S::failbit | S::badbit); for (size_t i (0); i < n; ++i) @@ -114,7 +114,7 @@ read_time (const path& p, const T& s, size_t n) vector<T> v (n); timestamp t (system_clock::now ()); - S is (p.string (), ofstream::in); + S is (p.string ()); is.exceptions (S::failbit | S::badbit); for (auto& ve: v) @@ -701,7 +701,7 @@ main (int argc, const char* argv[]) // Seek for read in the binary mode. // { - ifdstream is (f, ios::binary); + ifdstream is (f, fdopen_mode::binary); char c; is.get (c); |