
5 Jul
2012
5 Jul
'12
9:14 p.m.
On Thu, Jul 5, 2012 at 8:30 PM, Luke Elliott <lukester_null@yahoo.co.uk> 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