C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Get UUID at compile-time from compiler (sort of like __COUNTER__)

From: Bjorn Reese <breese_at_[hidden]>
Date: Thu, 23 Nov 2023 15:49:52 +0100
On 11/23/23 15:31, Frederick Virchanza Gotham via Std-Proposals wrote:

> No. 1 isn't a concern because the __UUID__ will always be different --
> you're just asking the compiler for a random 128-Bit number.

Maybe you should frame this proposal as a random-number macro, not
as a UUID, where you at best get 122 random bits according to RFC
4122.

Received on 2023-11-23 14:49:55