[ub] Type punning to avoid copying

Jeffrey Yasskin jyasskin at google.com
Fri Jul 26 17:45:29 CEST 2013


On Fri, Jul 26, 2013 at 8:30 AM, Gabriel Dos Reis <gdr at cs.tamu.edu> wrote:
> Ion Gaztañaga <igaztanaga at gmail.com> writes:
>
> [...]
>
> | ¿How can we tell the compiler that a memory buffer is really a different
> | type?
>
> Invoke a constructor to turn the raw memory into an object of the
> desired type.

Can you point to the wording that explains the behavior in that case?


More information about the ub mailing list