feat: explicit this enabled on clang-18
This commit is contained in:
1 parent
b21af8cabb
commit
2d229514cb
1 file changed
+7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user