C++ Logo

std-proposals

Advanced search

Re: [std-proposals] consteval hashing of compile-time constant compound literals

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Thu, 16 May 2024 10:23:46 -0400
On Thu, May 16, 2024 at 5:33 AM Frederick Virchanza Gotham via
Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> On Wed, May 15, 2024 at 10:59 AM Jonathan Wakely wrote:
> >
> > Why would you want the md5sum for tuple<int, char> to
> > depend on the unspecified order of the two subobjects,
> > and the unspecified number of padding bytes?
>
>
> It will at least be consistent for the current compiler in use, in
> particular for consteval stuff.

So you want the language to change in a way that can only be useful
for compiler-specific code, in order to do something you *can already
do* with the current language in a way that works on all compilers.

This is not what "motivation" looks like.

Received on 2024-05-16 14:23:58