This is a discussion on Re: NULL_vptr - KDE ; > 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? that's just a standard constructor call. it's the ...
> 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?
that's just a standard constructor call. it's the same as:
new RealFactory; // other languages require the parens
>>
>> Under what circumstances would _vptr be NULL?
if there's no virtual methods in the class, it's instances don't have =
vptrs.
andrew suttton
asutton@cs.kent.edu
=
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<