Skip to content

Commit

Permalink
build: explicit this enabled with a workaround for clang-18
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Feb 5, 2024
1 parent 1bf723e commit d4dde88
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/core/include/mp-units/bits/external/hacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,14 @@

#endif

#if (defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17)
// TODO revise the below when clang-18 is released
#if MP_UNITS_COMP_CLANG >= 18 && !defined __cpp_explicit_this_parameter

#define __cpp_explicit_this_parameter

#endif

#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17

#define MP_UNITS_CONSTEVAL constexpr

Expand Down

0 comments on commit d4dde88

Please sign in to comment.