Boost logo

Boost Users :

Subject: Re: [Boost-users] [String_Ref] Working with other parts of boost
From: Bjorn Reese (breese_at_[hidden])
Date: 2013-11-20 02:37:04


On 11/19/2013 04:26 PM, Norbert Wenzel wrote:

> 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.

You are right. lexical_cast does work with string_ref.

I overlooked the fact that lexical_cast works with both pointer+size
and iterator_range ranges.

More specifically, I overlooked the fact that lexical_cast uses
string_ref::operator<< to obtain the data (and I guess that this is
why Boost.Spirit generally outperforms lexical_cast.)

Sorry about the noise.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net