|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2005-10-13 20:19:09
On Thu, 13 Oct 2005 12:52:30 -0400, Daryle Walker wrote
> On 10/12/05 5:38 AM, "John Maddock" <john_at_[hidden]> wrote:
>
> [SNIP]
> > And for those who think that in-place modification is the way to go: you do
> > realise that it's often *slower* than building a new string don't you?
>
> And what if the string uses more than half of the available space?
> (I'm not advocating in-place modification, but just mentioning that
> "return a copy" has its flaws too.)
That's why the library supports both interfaces -- essentially letting the
user decide.
Jeff
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net