[reSIProcate] 'this' : used in base member initializer list
Scott Godin
slgodin at icescape.com
Mon Sep 13 10:17:38 CDT 2004
Derek,
The VS.NET compiler gives the below warning when compiling classes such as
InviteSession and DialogSet. Everything seems to work fine though. Do you
think this requires attention? Maybe we should move the assignments of the
'this' pointer outside of the initializer list.
Scott
'this' : used in base member initializer list
The this pointer is valid only within nonstatic member functions. It cannot
be used in the initializer list for a base class.
The base-class constructors and class member constructors are called before
this constructor. In effect, you've passed a pointer to an unconstructed
object to another constructor. If those other constructors access any
members or call member functions on this, the result will be undefined. You
should using the this pointer until all construction has completed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20040913/0583e74f/attachment.htm>
More information about the resiprocate-devel
mailing list