Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2003-06-26 15:39:44

Hamish Mackenzie wrote:

> dom::document doc;
> dom::document_ref doc2( doc.root().document() );
> assert( &doc2 == &doc );
> and...
> assert( doc2 == doc );
> Can be implemented but ideally it would compare all the nodes in the
> document.

well, that's different. Do you want to know whether both documents are
equal, or whether they are identical, i.e. whether both references point
to the same document ?

Hmm, just to check whether we are still talking about the same thing
here: do we agree that there can't be a 'node' type, i.e. just a
'node_ref'/'node_ptr' ?

Else it would be impossible to make that API a wrapper around libs like


Boost list run by bdawes at, gregod at, cpdaniel at, john at