
12 Oct
2005
12 Oct
'05
6:24 p.m.
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...