Fix detection of std::experimental::string_view and std::string_view with newer clang/libc++.
This commit is contained in:
parent
c7d2467be2
commit
68df16d560
@ -784,11 +784,19 @@
|
||||
#if !defined(ASIO_HAS_STD_STRING_VIEW)
|
||||
# if !defined(ASIO_DISABLE_STD_STRING_VIEW)
|
||||
# if defined(__clang__)
|
||||
# if (__cplusplus >= 201703)
|
||||
# if __has_include(<string_view>)
|
||||
# define ASIO_HAS_STD_STRING_VIEW 1
|
||||
# endif // __has_include(<string_view>)
|
||||
# endif // (__cplusplus >= 201703)
|
||||
# if defined(ASIO_HAS_CLANG_LIBCXX)
|
||||
# if (__cplusplus >= 201402)
|
||||
# if __has_include(<string_view>)
|
||||
# define ASIO_HAS_STD_STRING_VIEW 1
|
||||
# endif // __has_include(<string_view>)
|
||||
# endif // (__cplusplus >= 201402)
|
||||
# else // defined(ASIO_HAS_CLANG_LIBCXX)
|
||||
# if (__cplusplus >= 201703)
|
||||
# if __has_include(<string_view>)
|
||||
# define ASIO_HAS_STD_STRING_VIEW 1
|
||||
# endif // __has_include(<string_view>)
|
||||
# endif // (__cplusplus >= 201703)
|
||||
# endif // defined(ASIO_HAS_CLANG_LIBCXX)
|
||||
# elif defined(__GNUC__)
|
||||
# if (__GNUC__ >= 7)
|
||||
# if (__cplusplus >= 201703)
|
||||
@ -807,11 +815,21 @@
|
||||
#if !defined(ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW)
|
||||
# if !defined(ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW)
|
||||
# if defined(__clang__)
|
||||
# if (__cplusplus >= 201402)
|
||||
# if __has_include(<experimental/string_view>)
|
||||
# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1
|
||||
# endif // __has_include(<experimental/string_view>)
|
||||
# endif // (__cplusplus >= 201402)
|
||||
# if defined(ASIO_HAS_CLANG_LIBCXX)
|
||||
# if (_LIBCPP_VERSION < 7000)
|
||||
# if (__cplusplus >= 201402)
|
||||
# if __has_include(<experimental/string_view>)
|
||||
# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1
|
||||
# endif // __has_include(<experimental/string_view>)
|
||||
# endif // (__cplusplus >= 201402)
|
||||
# endif // (_LIBCPP_VERSION < 7000)
|
||||
# else // defined(ASIO_HAS_CLANG_LIBCXX)
|
||||
# if (__cplusplus >= 201402)
|
||||
# if __has_include(<experimental/string_view>)
|
||||
# define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1
|
||||
# endif // __has_include(<experimental/string_view>)
|
||||
# endif // (__cplusplus >= 201402)
|
||||
# endif // // defined(ASIO_HAS_CLANG_LIBCXX)
|
||||
# endif // defined(__clang__)
|
||||
# if defined(__GNUC__)
|
||||
# if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4)
|
||||
|
Loading…
Reference in New Issue
Block a user