Boost logo

Boost :

Subject: Re: [boost] [string] Yet another Unicode string class
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-02-14 04:53:20


On 14/02/2011 00:52, Dave Abrahams wrote:
> On Thu, Feb 10, 2011 at 3:38 PM, Anders Dalvander<boost_at_[hidden]> wrote:
>> * It is (currently) immutable and shares data, and thus fast to copy.
>
> Is there a reason you think this is a better approach than you could
> have by using the small string optimization and simply doing a deep
> copy when the internal buffer is too small?

SBO makes moving a string costly.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk