|
Boost : |
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2024-01-16 23:00:04
wt., 16 sty 2024 o 20:53 Ruben Perez via Boost <boost_at_[hidden]>
napisaÅ(a):
> 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?
>
See https://github.com/cppalliance/charconv/issues/110
Regards,
&rzej;
> Ruben.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk