Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2003-06-26 10:18:22


Stefan Seefeld wrote:

> And I don't use a 'document' class, as that is managed implicitely
> by my dom::document_ptr:
>
> dom::document_ptr document; // create new document;

that should actually become

dom::document_ptr document = dom::make_document("1.0");

or similar to indicate that a new document is to be created.
Then the default constructor can just create an empty pointer.

> dom::document_ptr doc(document); // create second reference to it
> dom::document_ptr doc2 = document.clone(); // clone it, i.e. make deep

Stefan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk