Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2003-02-03 11:31:35

"David Abrahams" <dave_at_[hidden]> wrote in message
> [...]
> That's called boost::compressed_pair.

Right. The generality of compressed_pair kept me from seeing that
rather obvious fact.

> [...]
> There is no such thing as empty member optimization.

Hmm...that's odd, because bcc includes a switch to turn it on. Given
how poor it is at most optimization, I assumed that surely this was a
standard thing. Guess not.

> > [...]
> > I mean, the optimally_inherit eliminates the empty bases, and yet
> > there is size bloat. So VC++ makes the class bigger for some
> > other reason than that it has empty bases. I will try to write some
> > tests to see why that is, or at least how.
> I repeat, I bet it's MI-related.

The proof of the pudding is in the eating.


Boost list run by bdawes at, gregod at, cpdaniel at, john at