[clang] [clang-tools-extra] [clang] check deduction consistency when partial ordering function templates (PR #100692)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 26 11:35:52 PDT 2024


================
@@ -30,98 +30,27 @@ class basic_string_view {
   constexpr basic_string_view &operator=(const basic_string_view &) {}
 };
 
-template <typename CharT>
-constexpr bool operator<(basic_string_view<CharT>, basic_string_view<CharT>) {
-  return {};
-}
-template <typename CharT>
-constexpr bool operator<(type_identity_t<basic_string_view<CharT>>,
-                         basic_string_view<CharT>) {
-  return {};
-}
-template <typename CharT>
-constexpr bool operator<(basic_string_view<CharT>,
-                         type_identity_t<basic_string_view<CharT>>) {
-  return {};
-}
----------------
mizvekov wrote:

Yeah, I removed this before realizing this was implementing string_view overloads per wording.

I have created a new thread on the core reflector about this.

https://github.com/llvm/llvm-project/pull/100692


More information about the cfe-commits mailing list