On Monday 10 October 2005 16:12, Jonathan Wakely wrote:
> Frans Englich wrote:
> > In a large project I'm participating in, a design dilemma have arrived.
> > Adding virtual inheritance would solve it beautifully on the source code
> > level, but a potential drawback is the speed penalty it brings.
> > Measurement is always the way of approaching performance questions, but
> > since that sometimes can be tricky, I thought of starting with getting a
> > theoretical understanding of virtual inheritance.
>
> If you don't mean "virtual inheritance as implemented by GCC" then this
> is probably the wrong place for such a question.

Yes, sorry for not being specific on that. It was concerning GCC, more 
specifically 3.3 and/or 4.0. (If there's anything specific to GCC not 
mentioned in the below referenced draft report, I will of course with 
interest read it).

> For an understanding of how it's implemented try "Inside the C++ Object
> Model" by Stan Lippmann, and this draft report (especially section 5.3.6)
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1666.pdf
>
> That's by a well-respected member of the standard committee, so you can
> take it pretty seriously.  I'd certainly give it more credence than
> unsubstantiated claims thrown up by googling.

Exactly, that's what's needed.


Thanks,

                Frans

Reply via email to