C++ Logo

std-proposals

Advanced search

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

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Fri, 17 May 2024 11:32:41 -0400
You keep missing the point here, so let's state it plainly.

The thing you want to do (hash an arbitrary type including its padding
bits) is not a thing you should want to do. It's bad, actually. You
can hash tuples in a much more reasonable way that doesn't include
padding bits, and you can do so at compile time.

There is no reason to want to do the thing you're wanting to do.

Received on 2024-05-17 15:32:53