chfast / intx

Extended precision integer C++ library
Apache License 2.0
129 stars 29 forks source link

Add support for `operator <=>` #295

Open chfast opened 1 year ago

chfast commented 1 year ago

It seems current intx implementation is not compatible with C++20 operator <=>.

The test case is something like:

struct S
{
    intx::uint256 x;

    operator<=>() = default;
}