From eb68bacfbbd7d858c6c7ead882990e31c19efdd0 Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Sat, 20 Jan 2024 09:28:38 -0600 Subject: [PATCH] Fix improperly macro-disabled enable_borrowed_range specializations, to fix MSVC builds. --- include/boost/parser/detail/text/transcode_view.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/boost/parser/detail/text/transcode_view.hpp b/include/boost/parser/detail/text/transcode_view.hpp index d12dead6..31f14189 100644 --- a/include/boost/parser/detail/text/transcode_view.hpp +++ b/include/boost/parser/detail/text/transcode_view.hpp @@ -800,12 +800,12 @@ namespace boost::parser::detail { namespace text { }} -#if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS - namespace std::ranges { +#if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS template inline constexpr bool enable_borrowed_range> = enable_borrowed_range; +#endif template inline constexpr bool enable_borrowed_range> = @@ -829,5 +829,3 @@ namespace std::ranges { } #endif - -#endif