El dom, 16 oct 2022 a la(s) 09:45, Bjorn Reese via Std-Proposals (std-proposals@lists.isocpp.org) escribió:
On 10/16/22 12:22, blacktea hamburger via Std-Proposals wrote:
> But it returns bool.

https://en.cppreference.com/w/cpp/language/implicit_conversion#Integral_promotion

the sign usually is 3-valued: +1, 0, -1, whereas the sign bit is boolean.

It is not semantically the same, you still need an extra conditional.


--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals


--
Who’s got the sweetest disposition?
One guess, that’s who?
Who’d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?