C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Random numbers in identical builds

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 10 Mar 2025 17:17:49 -0700
On Monday, 10 March 2025 16:36:12 Pacific Daylight Time Frederick Virchanza
Gotham via Std-Proposals wrote:
> The only question though is what is the desired behaviour if a
> constexpr UUID is generated in a header file? Should each translation
> unit get a unique UUID, or should the same UUID be shared among all
> the translation units (even if the constexpr variable has internal
> linkage)?

The answer to that is why it should not be in the compiler. If you need to
know which one it is, then you should control it yourself by having your build
system control it.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2025-03-11 00:17:55