Skip to content

Commit 65e0e7d

Browse files
authored
Merge pull request #745 from rothmichaels/bugfix/apple-clang17__cpp_deleted_function
fix: __cpp_deleted_function issue with Apple-clang 17
2 parents a673fd2 + f68fa0f commit 65e0e7d

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)