Skip to content

Commit 7dd43c1

Browse files
committed
Don't use the std::ranges::range_adaptor_closure in MSVC 2022 C++23 builds.
Fixes #175.
1 parent 2a9687f commit 7dd43c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/parser/detail/stl_interfaces/view_adaptor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#if !defined(BOOST_STL_INTERFACES_DOXYGEN)
1919

2020
#if BOOST_PARSER_USE_CONCEPTS && defined(__cpp_lib_ranges) && \
21-
202202L <= __cpp_lib_ranges
21+
202202L <= __cpp_lib_ranges && (!defined(_MSC_VER) || 1939 < _MSC_VER)
2222
#define BOOST_PARSER_USE_CPP23_STD_RANGE_ADAPTOR_CLOSURE 1
2323
#else
2424
#define BOOST_PARSER_USE_CPP23_STD_RANGE_ADAPTOR_CLOSURE 0

0 commit comments

Comments
 (0)