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


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to