From 574c7cf86ef86149dccafc7efda8b0cc28626aec Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 18 Dec 2021 18:39:03 +0200 Subject: [PATCH] Update string_view.hpp to use BOOST_NO_CXX20_HDR_CONCEPTS --- include/boost/core/detail/string_view.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/core/detail/string_view.hpp b/include/boost/core/detail/string_view.hpp index c8343c8..fa497ed 100644 --- a/include/boost/core/detail/string_view.hpp +++ b/include/boost/core/detail/string_view.hpp @@ -31,9 +31,8 @@ #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) # include #endif -#if BOOST_CXX_VERSION >= 202000L +#if !defined(BOOST_NO_CXX20_HDR_CONCEPTS) // std::common_reference_with # include -# include #endif namespace boost @@ -1223,7 +1222,7 @@ typedef basic_string_view u8string_view; // std::common_reference support // needed for iterators that have reference=string_view and value_type=std::string -#if BOOST_CXX_VERSION >= 202000L && defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 201907L +#if !defined(BOOST_NO_CXX20_HDR_CONCEPTS) template class Q1, template class Q2> struct std::basic_common_reference<