From 217fb2bdf54dfaa0c5b17549dca9fb46dfc9de86 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sat, 22 Sep 2018 13:38:27 +0200 Subject: [PATCH] Updated readme. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b75fa3..f28a035 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ If you want to also use the `fstream` wrapper with `path` support as fallback, you might use: ```cpp -#if defined(__has_include) && __has_include() +#if defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include() #include namespace fs { using namespace std::filesystem; @@ -119,6 +119,9 @@ using fstream = ghc::filesystem::fstream; #endif ``` +Now you have e.g. `fs::ofstream out(somePath);` and it is either the wrapper or +the C++17 `std::ofstream`. + Be aware, as a header-only library, it is not hiding the fact, that it uses system includes, so they "pollute" your global namespace.