0% cat test.cpp
1#include <compare>
2
3int main()
4{
5 double foo = -0.0;
6 double bar = 0.0;
7 return std::is_eq(foo <=> bar);
8}
9% clang++ -std=c++20 test.cpp
10test.cpp:7:15: error: no member named 'is_eq' in namespace 'std'
11 return std::is_eq(foo <=> bar);
12 ~~~~~^
131 error generated.
14% clang -v
15Apple clang version 14.0.0 (clang-1400.0.29.202)
16Target: x86_64-apple-darwin21.6.0
17Thread model: posix
18InstalledDir: /Library/Developer/CommandLineTools/usr/bin
https://developer.apple.com/xcode/cpp/#c++20 didn’t help much.
std::is_eq
were added in #29242.