Subject: Re: [std-proposals] Allowing access to object representations
From: Timur Doumler (cpp_at_[hidden])
Date: 2019-07-29 15:25:35
I am probably missing something here, but can't we solve this in C++20 by doing a std::bit_cast<std::byte[sizeof(T)]>?
Also, it would be very helpful if your paper provided a full code example showing before/after (i.e. something that is UB today but behaves differently with the changes you propose).
> On 29 Jul 2019, at 02:17, sdkrystian via Std-Proposals <std-proposals_at_[hidden]> wrote:
> Hi all,
> I've recently started work on a proposal to allow obtaining a pointer to the object representation of an object, and I want to get a sense of what you guys think. Linked in this email is my current draft, if you have time, take a look!
> Std-Proposals mailing list
STD-PROPOSALS list run by firstname.lastname@example.org
Standard Proposals Archives on Google Groups