None of the compilers I tried accept such code:
template <int ...a> bool foo() { return (a<=> ... <=>0); }
But for any other <=,>=,==,!=,<,>
it compiles.
cppreference is clear here - there is no <=>
on the list of binary operators we can use for fold expression.
Is this an intentional omission in the C++ standard, or are compilers not ready with this?
The question is just pure curiosity; I just wanted to know what the C++ direction is in this area. I can imagine all other compare operators will be removed from the fold-expression list of allowed operators, as they have as much sense as <=>
in a fold expression...