|
Boost : |
Subject: Re: [boost] [function] Placement new warnings from gcc 6
From: Larry Evans (cppljevans_at_[hidden])
Date: 2016-04-03 07:39:02
On 04/02/2016 08:08 AM, Andrey Semashev wrote:
[snip]
> union function_buffer
> {
> mutable function_buffer_members m;
> mutable char data[sizeof(function_buffer_members)];
> };
>
> This would require more modifications to the code though.
>
> (Sigh... if only we could inherit unions...)
>
Could you provide an example of how you'd like to inherit unions?
I'm guessing:
union function_buffer
: supertype_1
, supertype_2
...
, supertype_N
{
};
where all of the supertype_I's would occupy the same storage?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk