mirror of
https://github.com/boostorg/charconv.git
synced 2026-02-09 11:02:30 +00:00
Make a note in the docs that we diverge from the standard on ERANGE
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user