
19 Nov
2013
19 Nov
'13
3:26 p.m.
On 19.11.2013 15:57, Bjorn Reese wrote:
On 11/19/2013 02:30 PM, Antony Polukhin wrote:
Or were you talking about some other "range concept" support?
Yes, I was talking about Boost.Range concepts, which are used in Boost.StringAlgo. Here you pass a reference to an object whose beginning and ending can be obtained by boost::begin()/end(). This way the string algorithms work directly with string_ref.
I'm not sure if I understand your point correctly, but lexical_cast was the one thing I used, which actually did work with string_ref. Though I didn't check if lexical_cast made any copies or other unnecessary stuff internally, but I think I got the correct results from lexical_cast.