From 8d8f73c0cf9e2d4e2f36b776540ab4859c63d3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Tue, 14 Sep 2021 10:42:43 -0400 Subject: [PATCH] refactor: update hacks for LLVM 14 --- src/core/include/units/bits/external/hacks.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/include/units/bits/external/hacks.h b/src/core/include/units/bits/external/hacks.h index 20579827..6895f63c 100644 --- a/src/core/include/units/bits/external/hacks.h +++ b/src/core/include/units/bits/external/hacks.h @@ -77,7 +77,7 @@ #include #include -#elif UNITS_COMP_CLANG == 13 +#elif UNITS_COMP_CLANG == 13 || UNITS_COMP_CLANG == 14 #include @@ -218,10 +218,15 @@ constexpr bool in_range(T t) noexcept std::cmp_less_equal(t, std::numeric_limits::max()); } -#elif UNITS_COMP_CLANG == 13 +#elif UNITS_COMP_CLANG == 13 || UNITS_COMP_CLANG == 14 + +#if UNITS_COMP_CLANG == 13 using concepts::three_way_comparable; using concepts::three_way_comparable_with; + +#endif + using ::ranges::compare_three_way; #endif