From ee8dd08c6c6465e41bf9bb9b6e9f2584f93f4590 Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Mon, 30 Sep 2019 09:45:59 -0400 Subject: [PATCH] Fix storage deprecation warning when in C++17 mode Fixes "error: redundant redeclaration of 'constexpr' static data member 'ghc::filesystem::path_helper_base::preferred_separator' [-Werror=deprecated]" when compiling with GCC 7.4 in -std=c++17 mode. --- include/ghc/filesystem.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index c18745c..c26f4d5 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -204,8 +204,10 @@ class path_helper_base #endif }; +#if __cplusplus < 201703L template constexpr char_type path_helper_base::preferred_separator; +#endif // 30.10.8 class path class GHC_FS_API_CLASS path