Skip to content

Commit 0766cc0

Browse files
committed
check for ranges when deciding whether to uses ranges
1 parent 98f947d commit 0766cc0

File tree

1 file changed

+2
-1
lines changed
  • include/boost/parser/detail/text/detail

1 file changed

+2
-1
lines changed

include/boost/parser/detail/text/detail/all_t.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ namespace boost::parser::detail::text::detail {
4343
constexpr bool view =
4444
#if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS || \
4545
(defined(__cpp_lib_ranges) && \
46-
(!defined(BOOST_PARSER_GCC) || 12 <= __GNUC__))
46+
(!defined(BOOST_PARSER_GCC) || 12 <= __GNUC__) && \
47+
(!defined(__clang_major__) || 16 <= __clang_major__))
4748
std::ranges::view<R>
4849
#else
4950
range_<R> && !container_<R> &&

0 commit comments

Comments
 (0)