Skip to content

Commit

Permalink
feat: explicit this enabled on clang-18
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed May 16, 2024
1 parent b21af8c commit 2d22951
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/include/mp-units/bits/external/hacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@

#endif

// TODO revise the below when clang-18 is released
#if MP_UNITS_COMP_CLANG >= 18 && __cplusplus >= 202300L && !defined __cpp_explicit_this_parameter

#define __cpp_explicit_this_parameter 202110L

#endif

#if (defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17) || (defined MP_UNITS_COMP_GCC && MP_UNITS_COMP_GCC < 12)

#define MP_UNITS_CONSTEVAL constexpr
Expand Down

0 comments on commit 2d22951

Please sign in to comment.