Skip to content

Apple Clang 14.0 lacks support for std::is_eq #29918

@hebasto

Description

@hebasto
% cat test.cpp                   
#include <compare>

int main()
{
  double foo = -0.0;
  double bar = 0.0;
  return std::is_eq(foo <=> bar);
}
% clang++ -std=c++20 test.cpp        
test.cpp:7:15: error: no member named 'is_eq' in namespace 'std'
  return std::is_eq(foo <=> bar);
         ~~~~~^
1 error generated.
% clang -v                           
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

https://developer.apple.com/xcode/cpp/#c++20 didn't help much.

std::is_eq were added in #29242.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions