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


Hi,

"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.

regards,

Julien