Boost logo

Boost :

From: Alexander Grund (alexander.grund_at_[hidden])
Date: 2024-01-17 11:33:57


> 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.
But isn't strtold locale dependent while from_chars is supposed to act
as-if strtod in the "C"-locale? Wouldn't that fallback violate that
contract on non-English locales?

Or does that fallback only apply when the locale difference does not matter?

Alex




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk