Date: Sun, 16 Oct 2022 22:37:37 -0300
El dom, 16 oct 2022 a la(s) 09:45, Bjorn Reese via Std-Proposals (
std-proposals_at_[hidden]) 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_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>
std-proposals_at_[hidden]) 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_at_[hidden]
> 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?
Received on 2022-10-17 01:37:51