Boost logo

Boost :

Subject: Re: [boost] [lexical_cast] Fast conversion from boost::iterator_range<std::string::iterator>?
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-11-23 20:32:27

On 11/24/2011 7:30 AM, Hartmut Kaiser wrote:
> Something is definitely fishy with your Spirit numbers.

Yes, there's something wrong with the numbers alright.
We have extensive int and real number tests in Spirit. I did
a run and here's what I got:


atoi_test: 2.7353607652 [s] {checksum: 3b6f0e0}
strtol_test: 2.5913341972 [s] {checksum: 3b6f0e0}
spirit_int_test: 1.2209585612 [s] {checksum: 3b6f0e0}
atof_test: 2.7674816420 [s] {checksum: 84a4f7d}
strtod_test: 3.0302511938 [s] {checksum: 84a4f7d}
spirit_double_test: 0.8215847269 [s] {checksum: 84a4f7d}



atoi_test: 2.5954563140 [s] {checksum: ea987f7a}
strtol_test: 2.4382622754 [s] {checksum: ea987f7a}
spirit_int_test: 1.0699516219 [s] {checksum: ea987f7a}
atof_test: 2.7788751173 [s] {checksum: 84a4f7d}
strtod_test: 3.0187541826 [s] {checksum: 84a4f7d}
spirit_double_test: 0.8012355484 [s] {checksum: 84a4f7d}

Check it out. It's in:



Joel de Guzman

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