Boost logo

Boost :

Subject: Re: [boost] GSoC Proposal Preparation For Encoding Awared String
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2011-03-28 04:27:48


On 26.03.2011 22:49, Soares Chen wrote:
> One simple question to ask: May I know why is your class holding
> shared_ptr<basic_string<>> as the private member instead of simply
> basic_string<>? If I'm not wrong, basic_string<> is already a smart
> pointer to the underlying buffer and most implementation offers handy
> COW semantics.

On the contrary, the only CoW string I know is that from GCC's
libstdc++, and that one will have to change: C++0x prohibits CoW
implementations of std::basic_string.

Sebastian


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