Date: Mon, 29 Jul 2019 21:25:35 +0100
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).
Cheers,
Timur
> 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!
>
> https://github.com/18/accessing-object-representations/blob/master/paper.md
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> http://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
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).
Cheers,
Timur
> 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!
>
> https://github.com/18/accessing-object-representations/blob/master/paper.md
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> http://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2019-07-29 15:27:36