From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2007-10-22 04:12:33
Corrado Zoccolo wrote:
> BTW, the idea of the hand made vtable born in the discussion with gpd. My
> first implementation used just one function ptr to encapsulate all the
> behaviour (with a signature to fit all the methods), and was substantially
> less efficient than the current solution.
Instead of a hand make vtable, why not this?
virtual void something(void*) = 0;
void something(void* p)
// do something useful
poly(const U& u)
boost::alignment_of< impl<T> >
This simply assumes that all instances of impl have the same size and
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk