This wouldn't help our problem: You cannot overload based on return type...
Cheers, Jenn On Fri, 13 Dec 2002, Erik Rydgren wrote: > Just my 2 cents... > > Why not make the compiler worry about the overloading? > Create 2 methods in DOMNode: > > DOMDocument* DOMNode::getOwnerDocument(); > const DOMDocument* DOMNode::getOwnerDocument() const; > > Which handles the getownerdoc problem. Then implement 2 methods in > DOMDocument. > > DOMTreeWalker* DOMDocument::createTreeWalker(DOMNode* node, and so on...); > const DOMTreeWalker* DOMDocument::createTreeWalker(const DOMNode* node, and > so on...) const; > > Which handles the creation of non-const and const treewalkers. Or am I > missing something obvious? > > /Erik > -- Jennifer "Georgina" Schachter, Software Engineer +44-1865-203192 DecisionSoft Limited http://www.decisionsoft.com XML Development and Services --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
