Date: Mon, 14 Apr 2025 14:35:12 +0300
On Sat, 2025-04-12 at 18:12 +0100, Jonathan Wakely via Std-Proposals
wrote:
>
>
> On Sat, 12 Apr 2025, 18:08 Howard Hinnant via Std-Proposals,
> <std-proposals_at_[hidden]> wrote:
> > Ancedote:
> >
> > std::integral recently fell out of favor with me and I wrote my own
> > concept that better suited my needs:
> >
> > https://github.com/HowardHinnant/bbi/blob/master/bbi.h#L176-L191
> >
> > StandardSignedInteger
> > StandardUnsignedInteger
> > StandardInteger
> >
> > The difference here is that my concepts exclue bool and the
> > character types.
>
> Much more useful. Treating bool as an integer is almost never what
> you want.
>
> But at least we didn't make it a standard unsigned integer type like
> C did!
>
This calls for `signed bool`, `long short signed bool`, etc.
wrote:
>
>
> On Sat, 12 Apr 2025, 18:08 Howard Hinnant via Std-Proposals,
> <std-proposals_at_[hidden]> wrote:
> > Ancedote:
> >
> > std::integral recently fell out of favor with me and I wrote my own
> > concept that better suited my needs:
> >
> > https://github.com/HowardHinnant/bbi/blob/master/bbi.h#L176-L191
> >
> > StandardSignedInteger
> > StandardUnsignedInteger
> > StandardInteger
> >
> > The difference here is that my concepts exclue bool and the
> > character types.
>
> Much more useful. Treating bool as an integer is almost never what
> you want.
>
> But at least we didn't make it a standard unsigned integer type like
> C did!
>
This calls for `signed bool`, `long short signed bool`, etc.
Received on 2025-04-14 11:35:17