On Mon, 29 Sep 2003 [EMAIL PROTECTED] wrote: > > Can you provide a reference to the part of the standard that supports your > statement? I believe the 'this' pointer can be used in the > mem-initializer, as per 12.6.7 and 12.6.8 (which seem to contradict your > statement).
Oops! You're right. So long as the base class doesn't try to do anything with the pointer until later it'll work just fine. I guess this is the part where I kick myself for not checking before writing. > However, I do think passing the 'this' pointer to another object before the > constructor has completed is potentially dangerous, because the callee must > be aware the object is not yet fully constructed. Agreed. Thanks, Sean --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
