refactor: update hacks for LLVM 14

This commit is contained in:
Johel Ernesto Guerrero Peña
2021-09-14 10:42:43 -04:00
committed by Mateusz Pusz
parent 4ee09113eb
commit 8d8f73c0cf

View File

@@ -77,7 +77,7 @@
#include <range/v3/algorithm/lower_bound.hpp> #include <range/v3/algorithm/lower_bound.hpp>
#include <range/v3/algorithm/transform.hpp> #include <range/v3/algorithm/transform.hpp>
#elif UNITS_COMP_CLANG == 13 #elif UNITS_COMP_CLANG == 13 || UNITS_COMP_CLANG == 14
#include <range/v3/functional/comparisons.hpp> #include <range/v3/functional/comparisons.hpp>
@@ -218,10 +218,15 @@ constexpr bool in_range(T t) noexcept
std::cmp_less_equal(t, std::numeric_limits<R>::max()); std::cmp_less_equal(t, std::numeric_limits<R>::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;
using concepts::three_way_comparable_with; using concepts::three_way_comparable_with;
#endif
using ::ranges::compare_three_way; using ::ranges::compare_three_way;
#endif #endif