"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 :¬ ) -- AlisdairM _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost