Subject: Re: [boost] boost::algorithm::trim_copy() behaves like "strdup" in normal C, does it allocate a new string ?
From: Julien Nitard (julien.nitard_at_[hidden])
Date: 2012-03-10 05:33:09
"trim_copy", like other string algos, returns by value, it can't leak.
The returned object is a different object allocated on the stack, it will
destroyed when it goes out of stack.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk