Friday, 23 August 2013

Using unique_ptr to release XMLString, XERCES

Using unique_ptr to release XMLString, XERCES

unique_ptr <XMLString, the release function> uPtr I want to use unique_ptr
to release the XMLString class of XERCES.
For those who dont know XML parser XERCES, How can i use the unique_ptr so
that i can use a function of that class to release the object. instead of
new or delete.
Is this correct, unique_ptr <XMLString, XMLString::release> uPtr

No comments:

Post a Comment