Hi Peter, Peter Barker <newbar...@gmail.com> writes:
> Subject says it all really. I would like to give ownership of a > transcoded string to boost::scoped_array which will do a delete[] on > destruction. Is this guaranteed to be the same as passing the > transcoded string to a release() function? No, there is no such guarantee. The XMLSchema::transcode() functions have a default second argument which is a memory manager used to allocate the string. You can pass your own which uses new[] and then call delete[] to free the string. Boris -- Boris Kolpackov, Code Synthesis Tools http://codesynthesis.com/~boris/blog Open source XML data binding for C++: http://codesynthesis.com/products/xsd Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde