Lars Gullik Bjønnes wrote: > | template <class Controller, class Base> > | Controller const & GViewCB<Controller, Base>::controller() const > | { > | - return static_cast<Controller const &>(getController()); > | + return static_cast<Controller const > | &>(Dialog::View::getController()); > | } > > I don't like the use of Dialog::View here, can you please try with > just "this->" > > (And we should try to get rid of those static_casts as well...)
Conceptually, this is a dynamic_cast. However, when the code was written we had disabled rtti support. -- Angus