Boost logo

Boost :

From: Robert Kawulak (kawulak_at_[hidden])
Date: 2005-10-12 13:24:21

> From: Larry Evans

> By "composition" (of f, for example) do you mean:
> // A class inherited from empty base classes, with a char member
> struct g {
> f a_f;
> char c;
> };
> ?


> The policy_ptr library in sandbox used to have something that could
> test whether a base class was empty and eliminate it from the
> inheritance. I think the template class used was already somewhere
> in boost. Looking...
> Yes. A copy is at:
> box/boost/managed_ptr/optimally_inherit.hpp

But this is only about multiple inheritance, right? I use single
inheritance, so this seems not to be useful in the case...

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