> Try to replace this (and if it works other similar) function with: > > template <typename T> > static inline DOMNodeImpl* > castToNodeImpl(const T* p) > { > return &p->fNode; > }
Yeah, I was considering but wasn't sure if we wanted to add templates in, are we using them anywhere else in the code base? Anyway, that seems like a reasonable suggestion certainly, and is one reason I was preferring to do this on trunk. > There might still be some cases you you will have to cast the argument > to appropriate DOM*Impl type. I think so, yeah, there are quite a few of these casting helpers. Thanks, -- Scott --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org