2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-19 04:22:13 +00:00

Disable the use of concept constraints in Clang < 16.

Fixes #131.
Fixes #133.
This commit is contained in:
Zach Laine
2024-03-30 13:54:19 -05:00
parent 1cb67e7728
commit 5f50c371af

View File

@@ -79,7 +79,8 @@
# define BOOST_PARSER_ALGO_CONSTEXPR
#endif
#if defined(__cpp_lib_concepts) && !defined(BOOST_PARSER_DISABLE_CONCEPTS)
#if defined(__cpp_lib_concepts) && !defined(BOOST_PARSER_DISABLE_CONCEPTS) && \
(!defined(__clang__) || 16 <= __clang__)
# define BOOST_PARSER_USE_CONCEPTS 1
#else
# define BOOST_PARSER_USE_CONCEPTS 0