Boost logo

Boost :

From: Alisdair Meredith (alisdair.meredith_at_[hidden])
Date: 2003-02-02 17:10:23

"David B. Held" wrote:

> Optimally_inherit is a device that is the "dual" of compressed_pair<>.
> Andrei suggested it when this issue first came up. Whilst
> compressed_pair<> aggregates when a type is non-empty, and
> inherits when it's empty, optimally_inherit inherits when the type
> is non-empty, and just calls c'tors on temporaries when the type is
> empty. This way, empty bases don't actually enter the inheritance
> tree.

A little bit of synchronicity for you.

I was just taking a refresher read through More Exceptional C++ today,
and Item 4 on concept checking base classes jumped right off the page
after reading this post but 1/2 hour previously :¬ )


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