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;
> };
>
> ?

Yes.

> 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:
>
> http://cvs.sourceforge.net/viewcvs.py/boost-sandbox/boost-sand
> 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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk