You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code fails the #error with -std=c++20 -stdlib=libc++:
#include <compare>
#include <version>
std::strong_ordering Test(int a, int b) {
return a <=> b;
}
#if defined(__cpp_impl_three_way_comparison) && \
!defined(__cpp_lib_three_way_comparison)
#error The library supports three-way comparison but claims it does not
#endif