[all-commits] [llvm/llvm-project] 861b9c: [libc++] Fix std::variant comparators not working ...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Sat Mar 7 01:13:56 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 861b9cacdcda23cc1c610a2f5ab1f8533bb8e621
      https://github.com/llvm/llvm-project/commit/861b9cacdcda23cc1c610a2f5ab1f8533bb8e621
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M libcxx/include/variant
    M libcxx/test/std/utilities/variant/variant.relops/relops.pass.cpp

  Log Message:
  -----------
  [libc++] Fix std::variant comparators not working on recursive instantiations (#182238)

We currently have an instantiation cycle in `variant`'s comparison
operators. This patch fixes that by replacing a `decltype(auto)` with an
explicit return type, removing the requirement to instantiate the
function in order to know the return type.

Fixes #182232



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list