C++ Logo

std-proposals

Advanced search

Re: [std-proposals] __COUNTER__

From: René Ferdinand Rivera Morell <grafikrobot_at_[hidden]>
Date: Thu, 22 Aug 2024 10:22:36 -0500
On Thu, Aug 22, 2024 at 10:00 AM Mike Reed via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> 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.

Given that.. It would be more useful to standardize some form of
__UUID__ that matches the current __COUNTER__ use cases.


-- 
-- René Ferdinand Rivera Morell
-- Don't Assume Anything  -- No Supone Nada
-- Robot Dreams - http://robot-dreams.net

Received on 2024-08-22 15:22:56