ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] API Review request: XML API for C++, second round
by Stefan Seefeld other posts by this author
Jun 26 2003 3:18PM messages near this date
Re: [boost] API Review request: XML API for C++, second round | Re: [boost] API Review request: XML API for C++, second round
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
Thread:
Stefan Seefeld
Anthony Williams
Hamish Mackenzie
Stefan Seefeld
Anthony Williams
Hamish Mackenzie
Bohdan
Stefan Seefeld
Hamish Mackenzie
Stefan Seefeld
Hamish Mackenzie
Hamish Mackenzie
Stefan Seefeld
Hamish Mackenzie
Stefan Seefeld
Hamish Mackenzie
Stefan Seefeld
Hamish Mackenzie
Bohdan
Stefan Seefeld
Stefan Seefeld
Hamish Mackenzie
Stefan Seefeld
Hamish Mackenzie
Hamish Mackenzie

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved