Skip to content

Commit f68fa0f

Browse files
committed
fix: __cpp_deleted_function issue with Apple-clang 17
Apple-clang 17 (i.e. Xcode 16.3 or later) has the same issue with `__cpp_deleted_function` being set with C++20. I'm not sure if this fix is valuable / necessary since Apple-clang 17 has the same bug as Clang 19 that prevents us from building mp-units.
1 parent a0fd724 commit f68fa0f

File tree

1 file changed

+2
-1
lines changed
  • src/core/include/mp-units/bits

1 file changed

+2
-1
lines changed

src/core/include/mp-units/bits/hacks.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ inline constexpr from_range_t from_range{};
111111
#endif
112112

113113
// TODO https://github.com/llvm/llvm-project/issues/110224
114-
#if MP_UNITS_COMP_CLANG >= 19 && __cplusplus <= 202302
114+
#if (MP_UNITS_COMP_CLANG >= 19 || (defined(__apple_build_version__) && MP_UNITS_COMP_CLANG >= 17)) && \
115+
__cplusplus <= 202302
115116

116117
MP_UNITS_DIAGNOSTIC_PUSH
117118
MP_UNITS_DIAGNOSTIC_IGNORE_BUILTIN_MACRO_REDEFINED

0 commit comments

Comments
 (0)