C++ Logo

sg12

Advanced search

Re: [ub] type punning through congruent base class?

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Mon, 6 Jan 2014 18:11:36 +0200
On 6 January 2014 17:34, Fabio Fracassi <f.fracassi_at_[hidden]> wrote:
> It would enable us to extend or change the interface of a class without
> copying or moving the underlying object (think mixin without additional data).

Why don't you just construct D with a B&?

Received on 2014-01-06 17:11:37