Re: 'this' used in base member initializer list

2003-09-29 Thread Sean Kelly
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. S

Re: 'this' used in base member initializer list

2003-09-29 Thread david_n_bertoni
Hi Sean, > Problem being that, according to the standard, 'this' isn't required to be > a valid pointer until the body of the constructor has been entered. A fix > would likely require adding a new protected method to the parent class to > pass the pointer. Can you provide a reference to the

'this' used in base member initializer list

2003-09-29 Thread Sean Kelly
Just got the latest copy of the source and noticed this hasn't been cleared up. The offending files are: DocumentImpl.cpp DOMParentNode.cpp DOMDocumentImpl.cpp The code that's breaking is similar to this: DocumentImpl::DocumentImpl(MemoryManager* const manager) : ParentNode(this) Problem b

RE: Efficiency of document fragments?

2003-09-29 Thread Erik Rydgren
Nope the penalty for using document fragments is very low. The fragment has to be allocated / deallocated of course and there will be an extra node insert performed. So the price is low. However if you construct many fragment the overhead will be noticeable. And if you construct a fragment for each