|
Boost : |
Subject: Re: [boost] [format] Any interest in decoupling it from std::basic_string?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-07-05 17:14:16
On Thu, Jul 5, 2012 at 8:30 PM, Luke Elliott <lukester_null_at_[hidden]> wrote:
>> Because std::string can't be assigned to the alternative string type?
>
>
> Yes. lexical_cast works, and obviously .c_str()/.length() could be used but
> instead of a 50-odd line patch to boost.format that's a whole load more
> changes to a lot of client code... plus whilst I don't care about format
> performance, I'm not sure I don't care about it enough to not care about
> additional string construction :)
Why don't the alternative string types support implicit construction
from std::string?
Does str() move from the internal storage or does it construct a new
std::string anyway?
Olaf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk