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.
This commit is contained in:
Jeremy Nimmer 2019-09-30 09:45:59 -04:00
parent 65b54093ea
commit ee8dd08c6c

View File

@ -204,8 +204,10 @@ public:
#endif #endif
}; };
#if __cplusplus < 201703L
template <typename char_type> template <typename char_type>
constexpr char_type path_helper_base<char_type>::preferred_separator; constexpr char_type path_helper_base<char_type>::preferred_separator;
#endif
// 30.10.8 class path // 30.10.8 class path
class GHC_FS_API_CLASS path class GHC_FS_API_CLASS path