feat: explicit this enabled on clang-18

This commit is contained in:
Mateusz Pusz
2024-05-16 19:14:30 +02:00
parent b21af8cabb
commit 2d229514cb

View File

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