|
Boost : |
From: Matt Borland (matt_at_[hidden])
Date: 2024-01-17 11:27:41
>
> I see. Out of curiosity, what makes the parsing algorithm fail such that you need to call strtold?
>
It's an intractable problem. I spent a few months trying to adapt Lemire's papers on fast_float to 128-bit precision. You need 10s of MBs of static data, and generating it at runtime is a non-starter. Ultimately Gay's algorithm works, and it's what is in strtold already. I would much rather use the battle tested implementations in the STL than my own.
Matt
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk