Boost logo

Boost :

From: Ruben Perez (rubenperez038_at_[hidden])
Date: 2024-01-16 19:53:34


Docs state "non-allocating", yet grepping for malloc
in the source code yields a couple of results in the
from_chars implementation for floats. Could you
please explain the reason behind this?

Also, from the docs for from_chars for floating points:

 "On std::errc::result_out_of_range we return ±0 for
small values (e.g. 1.0e-99999) or ±HUGE_VAL for
large values (e.g. 1.0e+99999) to match the handling
of std::strtod"

What's the rationale for deviating from the standard here?

Ruben.


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