Skip to content

[libc++] tuple<> cannot be compared with array<T, 0> #135306

@hewillk

Description

@hewillk

The following should be well-formed since C++23.

#include <tuple>
#include <array>

int main() {
  std::array<int, 0> a;
  std::tuple<> t;
  auto eq = (t == a);
  auto cmp = (t <=> a);
}

https://godbolt.org/z/T9zME3x6v

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateResolved as duplicatelibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions