>From 7a57f0e710d1e49e33b9d636f4f5eacf0638ccfe Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 16 Dec 2014 22:31:01 +0100 Subject: [PATCH 2/5] Change output_file_existence_checker ctor to take fs::path. This is more flexible than taking std::string as fs::path can be (implicitly) created from std::string, so the existing code doesn't need to be changed, but this class can now be also used when we already have a fs::path object without converting it to a string and then recreating fs::path from this string here. --- wx_test_output.hpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/wx_test_output.hpp b/wx_test_output.hpp index 4c9cc7c..a0973d7 100644 --- a/wx_test_output.hpp +++ b/wx_test_output.hpp @@ -40,7 +40,7 @@ class output_file_existence_checker :private lmi::uncopyable { public: - output_file_existence_checker(std::string const& path) + output_file_existence_checker(fs::path const& path) :path_(path) { fs::remove(path_); -- 1.7.9