Skip to content

Commit ee8dd08

Browse files
committed
Fix storage deprecation warning when in C++17 mode
Fixes "error: redundant redeclaration of 'constexpr' static data member 'ghc::filesystem::path_helper_base<char_type>::preferred_separator' [-Werror=deprecated]" when compiling with GCC 7.4 in -std=c++17 mode.
1 parent 65b5409 commit ee8dd08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/ghc/filesystem.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,10 @@ class path_helper_base
204204
#endif
205205
};
206206

207+
#if __cplusplus < 201703L
207208
template <typename char_type>
208209
constexpr char_type path_helper_base<char_type>::preferred_separator;
210+
#endif
209211

210212
// 30.10.8 class path
211213
class GHC_FS_API_CLASS path

0 commit comments

Comments
 (0)