[all-commits] [llvm/llvm-project] dd9afd: [libc++] Fix missing requires clause on variant op...

Joe Loser via All-commits all-commits at lists.llvm.org
Mon Oct 17 15:27:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd9afdbb2ab47ad09e36c0afc94049285b474264
      https://github.com/llvm/llvm-project/commit/dd9afdbb2ab47ad09e36c0afc94049285b474264
  Author: Joe Loser <joeloser at fastmail.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

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

  Log Message:
  -----------
  [libc++] Fix missing requires clause on variant operator<=>

`std::variant::operator<=>` is missing a requires clause ensuring that
`operator<=>` only exists when all of the types in the variant are
`three_way_comparable`.

Add the missing requires clause and adjust the existing test which was
incorrect.

Fixes https://github.com/llvm/llvm-project/issues/58192.

Differential Revision: https://reviews.llvm.org/D136050




More information about the All-commits mailing list