build: explicit this enabled with a workaround for clang-18

This commit is contained in:
Mateusz Pusz
2024-02-05 16:33:32 +01:00
parent 1bf723e0fe
commit d4dde886cb

View File

@@ -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