5 Apr
2016
5 Apr
'16
3:39 a.m.
On 4/04/2016 19:52, Andrey Semashev wrote:
On 2016-04-04 04:35, Gavin Lambert wrote:
Could you do this with an anonymous union? eg:
union function_buffer { mutable union function_buffer_members { ... }; mutable char data[sizeof(function_buffer_members)]; };
Haven't tested this; not sure if it's legal to get the sizeof a subtype nested in the same scope like this, but it at least seems plausible.
That is a named union in your example. And if it's anonymous then you have no name to apply sizeof to.
Type name != member name. It is still an anonymous union.