fix: __cpp_explicit_this_parameter clang-18 hack applied only for C++23 and up

This commit is contained in:
Mateusz Pusz
2024-02-23 16:51:59 +01:00
parent 81ad4aedee
commit 6546878e5e

View File

@ -81,7 +81,7 @@
#endif
// TODO revise the below when clang-18 is released
#if MP_UNITS_COMP_CLANG >= 18 && !defined __cpp_explicit_this_parameter
#if MP_UNITS_COMP_CLANG >= 18 && __cplusplus >= 202300L && !defined __cpp_explicit_this_parameter
#define __cpp_explicit_this_parameter 202110L