[haiku-commits] Re: r38086 -DA haiku/trunk/src/servers/app/drawing/Painter

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 13 Aug 2010 10:38:01 -0400

On Fri, Aug 13, 2010 at 9:56 AM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> Multiple inheritance as such isn't be a problem for static_cast -- the
> pointer is adjusted just the same. Virtual inheritance might be problem,
> but I guess the compiler would complain in that case.

Oh? I was always under the impression that static_cast was more or
less C++ sugar for a classic C-style (type) cast, which does no
adjustment while dynamic_cast did all the necessary
checks/adjustments, hence being a slower op. If that's the case, then
what's the distinction?

Regards,

Rene

Other related posts: