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:
@@ -69,13 +69,11 @@
|
|||||||
# define BOOST_HASH_HAS_STRING_VIEW 1
|
# define BOOST_HASH_HAS_STRING_VIEW 1
|
||||||
# include <string_view>
|
# include <string_view>
|
||||||
# endif
|
# endif
|
||||||
# else
|
# elif defined(__cplusplus) && __cplusplus >= 201703
|
||||||
# include <string_view>
|
# include <string_view>
|
||||||
# if defined(__cpp_lib_string_view) && __cpp_lib_string_view >= 201603
|
|
||||||
# define BOOST_HASH_HAS_STRING_VIEW 1
|
# define BOOST_HASH_HAS_STRING_VIEW 1
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(BOOST_HASH_HAS_STRING_VIEW)
|
#if !defined(BOOST_HASH_HAS_STRING_VIEW)
|
||||||
|
Reference in New Issue
Block a user