< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
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. |