Boost logo

Boost :

Subject: Re: [boost] [string] proposal
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2011-01-24 06:59:27

On Mon, Jan 24, 2011 at 7:50 PM, Artyom <artyomtnk_at_[hidden]> wrote:
>> From: Dave Abrahams <dave_at_[hidden]>
>> On Fri, Jan 21, 2011 at 4:31 PM, Nevin Liber <nevin_at_[hidden]>  wrote:
>> >
>> > Eliminating #2 but not  #1 would force c_str() to make a (possibly tracked)
>> > copy, to avoid #2 on  its internal buffer (due to the trailing '\0' byte).
>> Who says we need a  c_str()?
> Almost everybody who uses any kind of API that does not has direct uses
> of this string and this is as almost every API around...

Right, but what's keeping that person from creating an std::string
from this hypothetical `boost::string` if they really need a c_str()?

Dean Michael Berris

Boost list run by bdawes at, gregod at, cpdaniel at, john at