Boost logo

Boost :

Subject: Re: [boost] [string] proposal
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-01-21 16:38:13


On 21 January 2011 11:56, Dean Michael Berris <mikhailberis_at_[hidden]>wrote:

> No changing arbitrary content in the string. Concatenation is a
> process of creating new strings.
>
> Ultimately the underlying string should be efficient

Please describe how you are going to make this efficient, if concatenation
effectively requires an allocation (once past the small string optimization)
and a copy.

It is one thing to be in a garbage collected world where the cost of
allocation is relatively cheap, but that world is not C++.

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

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