Skip to content

Commit fc53d45

Browse files
committed
Add note about charconv behavior
1 parent dc01f38 commit fc53d45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/decimal/charconv.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ https://www.boost.org/LICENSE_1_0.txt
1212

1313
The following functions analogous to those from https://en.cppreference.com/w/cpp/header/charconv[<charconv>] are provided:
1414

15+
IMPORTANT: `std::from_chars` has an open issue with LWG here: https://cplusplus.github.io/LWG/lwg-active.html#3081.
16+
The standard for <charconv> does not distinguish between underflow and overflow like strtod does.
17+
`boost::decimal::from_chars` modifies `value` in order to communicate this to the user in a divergence from the standard.
18+
This behavior is the same as that of https://www.boost.org/doc/libs/master/libs/charconv/doc/html/charconv.html#from_chars_usage_notes_for_from_chars_for_floating_point_types[`boost::charconv::from_chars_erange`].
19+
1520
[source, c++]
1621
----
1722
namespace boost {

0 commit comments

Comments
 (0)