mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
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:
parent
65b54093ea
commit
ee8dd08c6c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user