Make a note in the docs that we diverge from the standard on ERANGE

This commit is contained in:
Matt Borland
2023-05-17 09:08:15 +02:00
parent 72a62c91d5
commit c5214a9500

View File

@@ -49,6 +49,10 @@ from_chars_result from_chars(const char* first, const char* last, Real& value, c
* from_chars for integral types is constexpr when compiled using `-std=c++14` or newer
** One known exception is GCC 5 which does not support constexpr comparison of `const char*`.
=== from_chars for floating point types
* On ERANGE we return ±0 for small values (e.g. 1.0e-99999) or ±HUGE_VAL for large values (1.0e+99999) to match the handling of `std::strtod`.
This is a divergence from the standard.
== Examples
=== Basic usage