C++ Logo


Advanced search

Subject: Re: [std-proposals] Allowing access to object representations
From: Timur Doumler (cpp_at_[hidden])
Date: 2019-08-21 14:11:44

This doesn't make sense to me. If I have an object of type int (or, say, a struct containing an int), then the value has 4 bytes. If I access that value by dereferencing a char pointer that aliases that object, all I can ever get from that char is a single byte. How can this be "the object"?


> On 21 Aug 2019, at 20:59, language.lawyer--- via Std-Proposals <std-proposals_at_[hidden]> wrote:
>> On 21/08/2019 21:55, Krystian Stasiowski via Std-Proposals wrote:
>> Yes, you access the value of the object of the object, however, since its not specified what exactly you get
> It is specified: you get the value contained in the object.
>> http://eel.is/c++draft/conv.lval#3.4
> Indeed, it is specified here.
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups