C++ Logo

std-proposals

Advanced search

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

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Thu, 23 Nov 2023 16:00:41 +0100
On 23/11/2023 15:31, Frederick Virchanza Gotham via Std-Proposals wrote:
>> 1. A similar concern with COUNTER, if it appears in header files it's can be a source of ODR violation.
>> 2. Reproducible builds
>
> 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.

I don't understand this answer. If always different, then it *is* a
concern for ODR violations.

-- 
Giuseppe D'Angelo

Received on 2023-11-23 15:00:44