Asger Ottar Alstrup <[EMAIL PROTECTED]> writes:

| Finally, I get a bunch of compile errors:
>
| QMathMatrixDialog.C
| c:\lyx\lyx-devel\src\frontends\qt2\QDialogView.h(113) : error C2440:
| 'return' : cannot convert from 'lyx::frontend::QMathDialog *' to
| 'QDialog *'
|          Types pointed to are unrelated; conversion requires
| reinterpret_cast, C-style cast or function-style cast

Compiler bug.


Does your compiler allow:

class Base {
public:
      virtual Base * clone();
};

class Derived : public Base {
public:
        virtual Base * clone() {
                return new Derived;
        }
};

?? (what about if we add some template classes?)


-- 
        Lgb

Reply via email to