3 ms·
Seems like the free comparison function in boost rational should have been constrained to non-rationals i.e. !is_same_v<rational, U>
by nly 1y ago
Seems like the free comparison function in boost rational should have been constrained to non-rationals
i.e. !is_same_v<rational, U>
- ethan_smith 1y agoThe constraint should be `template <typename T> requires (!std::is_same_v<T, rational<>>)` since the spaceship operator's rewriting rules for mixed-type comparisons create the ambiguity that triggered the compiler bug.