diff options
author | fanquake <fanquake@gmail.com> | 2021-12-24 16:19:02 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-01-26 22:08:19 +0800 |
commit | 21f781ad7921ebda9f38a6be362e23750d8cd5a6 (patch) | |
tree | a32a921d64bdf482fbbca9f14d466fbdf1d2877e /src/bench/bench.cpp | |
parent | e3699b71c46bf66cfe363fc76ab8761dc39555a7 (diff) |
fs: consistently use fsbridge for {i,o}fstream
Part of #20744, but this can be done now, and will simplify the diff.
Diffstat (limited to 'src/bench/bench.cpp')
-rw-r--r-- | src/bench/bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp index d7b4228566..9bd176f0a0 100644 --- a/src/bench/bench.cpp +++ b/src/bench/bench.cpp @@ -4,10 +4,10 @@ #include <bench/bench.h> +#include <fs.h> #include <test/util/setup_common.h> #include <chrono> -#include <fstream> #include <functional> #include <iostream> #include <map> @@ -29,7 +29,7 @@ void GenerateTemplateResults(const std::vector<ankerl::nanobench::Result>& bench // nothing to write, bail out return; } - std::ofstream fout(filename); + fsbridge::ofstream fout{fs::PathFromString(filename)}; if (fout.is_open()) { ankerl::nanobench::render(tpl, benchmarkResults, fout); } else { |