On Wed, Apr 22, 2009 at 8:49 PM, Boris Kolpackov <[email protected]> wrote: > Hi Peter, > > Peter Barker <[email protected]> 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
Thank you and Vitaly for clearing that up. Regards, Peter Barker
