From 6546878e5e4882844f7c0f56051a14fab400cf0c Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 23 Feb 2024 16:51:59 +0100 Subject: [PATCH] fix: `__cpp_explicit_this_parameter` clang-18 hack applied only for C++23 and up --- src/core/include/mp-units/bits/external/hacks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/bits/external/hacks.h b/src/core/include/mp-units/bits/external/hacks.h index e424d997..e0a2edde 100644 --- a/src/core/include/mp-units/bits/external/hacks.h +++ b/src/core/include/mp-units/bits/external/hacks.h @@ -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