Clang now supports three-way comparisons. That causes both overloads of
std::lexicographical_compare_three_way to be defined, but the second one
uses std::compare_three_way which depends on concepts. Clang does not
yet support concepts, so the second overload should also depend on
__cpp_lib_concepts.
* include/bits/stl_algobase.h (lexicographical_compare_three_way):
Only define four-argument overload when __cpp_lib_concepts is defined.
From-SVN: r279861
+2020-01-03 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/bits/stl_algobase.h (lexicographical_compare_three_way):
+ Only define four-argument overload when __cpp_lib_concepts is defined.
+
2020-01-01 John David Anglin <danglin@gcc.gnu.org>
* config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
: __first2 != __last2 ? strong_ordering::less : strong_ordering::equal;
}
+#if __cpp_lib_concepts
template<typename _InputIter1, typename _InputIter2>
constexpr auto
lexicographical_compare_three_way(_InputIter1 __first1,
__first2, __last2,
compare_three_way{});
}
+#endif // concepts
#endif // three_way_comparison
template<typename _InputIterator1, typename _InputIterator2,