On Monday 08 August 2005 08:43, Ho Han Keng wrote:
> Greetings Craig,
> i think there is something wrong about the code:
> =


> ...
> s_self =3D new RealFactory();
> ...
> =


> in C++, operator() is invoked and the resulting functor is then passed to =


> operator new for initialization. Is that desirable?


I don't think there's a problem there.
() is an empty initialization list.
Even Qt does it that way sometimes:
qabstractitemmodel.cpp: QMimeData *data =3D new QMimeData();

-- =

David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

=

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=

e <<