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:
Daniel James
2018-01-20 21:53:36 +00:00
parent b5c3b5d00a
commit 5c4edf4d7d

View File

@@ -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