On Friday 12 January 2001 14:25, Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
> | I've managed to create a GUI-I ControlCitation class that stores a
> | pointer to a ButtonController abstract base class. However, in my xforms
> | specific FormViewCitation class, I need to access FormButtonController
> | specific functions and must, therefore, resort to dynamic_cast.
> |
> | Are we allowed to use dynamic_cast in LyX code?
>
> No, not yet.


Well then, I'll use static_cast:

FormButtonController & FormCitation::bc() const
{
        //return static_cast<FormButtonController &>(parent.bc());
        return dynamic_cast<FormButtonController &>(parent.bc());
}

Reply via email to