C++ Logo

sg12

Advanced search

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

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Thu, 16 Jan 2014 20:00:50 +0000
| -----Original Message-----
| From: ub-bounces_at_[hidden] [mailto:ub-bounces_at_[hidden]] On
| Behalf Of Herb Sutter
| Sent: Thursday, January 16, 2014 11:50 AM
| To: WG21 UB study group
| Subject: Re: [ub] type punning through congruent base class?
|
| > Well, as far as I understand, trivial constructors might not be called at all.
|
| Maybe "might not be called" is part of the bug then. Isn't the right model that
| trivial ctors are called, but "might do nothing"?

Yes, agreed.

-- Gaby

Received on 2014-01-16 21:01:01