C++ Logo

std-discussion

Advanced search

Re: reading values as bytes without memcpu, from enum unsigned char?

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Fri, 7 Aug 2020 13:08:16 -0400
On Fri, Aug 7, 2020 at 1:05 PM language.lawyer--- via Std-Discussion
<std-discussion_at_[hidden]> wrote:
>
> On 07/08/2020 19:45, Ville Voutilainen via Std-Discussion wrote:
> > So sure, we can fix C++14 modes of compilers.
>
> Assuming we can fix something, in the first place

>From the perspective of compilers, there isn't really anything to
"fix". That is, compilers already allow us to do these things, and
they're highly unlikely to stop allowing it (since that would break
tons of perfectly reasonable code). Plus, the reason these things are
defects is because we recognize that the language *ought* to permit
it, and we're just trying to find the right wording to define how that
works.

This is a textual fix more than a compiler fix, aligning the standard
to more accurately describe what programmers and tools already agree
is reasonable. Think of it as writing a clause into a contract that
everyone is already following as if it were always there.

Received on 2020-08-07 12:11:49