John Levon <[EMAIL PROTECTED]> writes:

| I much prefer Andre's way. Compare
| 
|       InsetSomething * i = inset->asSomethingInset();
|       if (!i)
|               break;
| 
| with
| 
|       if (inset->lyxCode() == SOMETHING_CODE) {
|               InsetSomething * i = static_cast<InsetSomething*>(i);
|               ...
|       }
| 
| Does anyone have a problem with this form of RTTI ?

Only if you plan to do something about this now.

-- 
        Lgb

Reply via email to