From e846189f6793193b04d1295d9c13a1f6bc0785d3 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 16 Mar 2021 21:02:02 +0300 Subject: [PATCH 1/2] Fix BOOST_NO_CXX20_HDR_RANGES --- include/boost/config/detail/suffix.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/config/detail/suffix.hpp b/include/boost/config/detail/suffix.hpp index c8a7aa3f..1bd57c13 100644 --- a/include/boost/config/detail/suffix.hpp +++ b/include/boost/config/detail/suffix.hpp @@ -1170,7 +1170,7 @@ namespace std{ using ::type_info; } #if !__has_include() # define BOOST_NO_CXX20_HDR_CONCEPTS #endif -#if !__has_include() +#if !__has_include() # define BOOST_NO_CXX20_HDR_RANGES #endif #if !__has_include() From 50c009be261f1bb731702985bccaebd3c058922c Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 16 Mar 2021 21:25:27 +0300 Subject: [PATCH 2/2] Fix test name conflict --- test/boost_no_cxx20_hdr_ranges.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/boost_no_cxx20_hdr_ranges.ipp b/test/boost_no_cxx20_hdr_ranges.ipp index 9021a436..939eb73e 100644 --- a/test/boost_no_cxx20_hdr_ranges.ipp +++ b/test/boost_no_cxx20_hdr_ranges.ipp @@ -87,7 +87,7 @@ namespace boost_no_cxx20_hdr_ranges { using std::ranges::crend; using std::ranges::size; using std::ranges::ssize; - using std::ranges::empty; + constexpr auto dummy = std::ranges::empty; // Would conflict with std::views::empty using std::ranges::data; using std::ranges::cdata; using std::ranges::subrange_kind;