Skip to content

Commit

Permalink
Merge pull request #373 from tpadioleau/fix-clang-bracket-issue
Browse files Browse the repository at this point in the history
Improve workaround clang bracket compilation bug
  • Loading branch information
tpadioleau authored Dec 18, 2024
1 parent cb3bd42 commit c21078c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/experimental/__p0009_bits/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ static_assert(_MDSPAN_CPLUSPLUS >= MDSPAN_CXX_STD_14, "mdspan requires C++14 or
# if defined(__cpp_multidimensional_subscript)
// The following if/else is necessary to workaround a clang issue
// relative to using a parameter pack inside a bracket operator in C++2b/C++23 mode
# if defined(_MDSPAN_COMPILER_CLANG) && ((__clang_major__ == 15) || (__clang_major__ == 16))
# if defined(_MDSPAN_COMPILER_CLANG) && \
((__clang_major__ < 17) || \
(__clang_major__ == 17 && __clang_minor__ == 0 && \
__clang_patchlevel__ == 0))
# define MDSPAN_USE_BRACKET_OPERATOR 0
# else
# define MDSPAN_USE_BRACKET_OPERATOR 1
Expand Down

0 comments on commit c21078c

Please sign in to comment.