The example I provided is not the best, since 42 is small enough for unsigned char and int to work as expected, imagine that I wrote a bigger number, such as 1000
-------- Original message --------
From: Timur Doumler via Std-Proposals <std-proposals@lists.isocpp.org>
Date: 8/21/19 15:11 (GMT-05:00)
To: std-proposals@lists.isocpp.org
Cc: Timur Doumler <cpp@timur.audio>
Subject: Re: [std-proposals] Allowing access to object representations
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"?