forked from boostorg/container_hash
Fix string_view include on gcc 7.2
If it's included in anything earlier than c++-1z it errors.
This commit is contained in:
1 parent
b5c3b5d00a
commit
5c4edf4d7d
1 file changed
+2
-4
@@ -69,11 +69,9 @@
|
||||
# define BOOST_HASH_HAS_STRING_VIEW 1
|
||||
# include <string_view>
|
||||
# endif
|
||||
# else
|
||||
# elif defined(__cplusplus) && __cplusplus >= 201703
|
||||
# include <string_view>
|
||||
# if defined(__cpp_lib_string_view) && __cpp_lib_string_view >= 201603
|
||||
# define BOOST_HASH_HAS_STRING_VIEW 1
|
||||
# endif
|
||||
# define BOOST_HASH_HAS_STRING_VIEW 1
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user