Date: Thu, 22 Aug 2024 17:00:22 +0200
Given that nearly every use case is to produce a unique identifier, surely
the last thing you want overflow to do is silently wrap to zero. I would
expect the standard to mandate that overflow forces a compile error.
On Thu, 22 Aug 2024, 16:39 Jeremy Rifkin via Std-Proposals, <
std-proposals_at_[hidden]> wrote:
> Hello,
> I've drafted a proposal to standardize __COUNTER__:
> https://jeremy-rifkin.github.io/cpp-proposals/drafts/counter_initial_draft.html
> .
>
> I welcome any comments and thoughts,
> Jeremy
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>
the last thing you want overflow to do is silently wrap to zero. I would
expect the standard to mandate that overflow forces a compile error.
On Thu, 22 Aug 2024, 16:39 Jeremy Rifkin via Std-Proposals, <
std-proposals_at_[hidden]> wrote:
> Hello,
> I've drafted a proposal to standardize __COUNTER__:
> https://jeremy-rifkin.github.io/cpp-proposals/drafts/counter_initial_draft.html
> .
>
> I welcome any comments and thoughts,
> Jeremy
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>
Received on 2024-08-22 15:00:45