-
Notifications
You must be signed in to change notification settings - Fork 15k
Closed as not planned
Labels
confirmedVerified by a second partyVerified by a second partylibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Description
std::to_char
in libc++ converts long double
to double
:
llvm-project/libcxx/src/charconv.cpp
Lines 81 to 83 in 3c126d5
to_chars_result to_chars(char* __first, char* __last, long double __value, chars_format __fmt, int __precision) { | |
return _Floating_to_chars<_Floating_to_chars_overload::_Format_precision>( | |
__first, __last, static_cast<double>(__value), __fmt, __precision); |
Test shows libc++ std::to_char
output being different from printf
/std::ostream
, and compared to libstdc++: https://godbolt.org/z/GsYfTTjq7
Metadata
Metadata
Assignees
Labels
confirmedVerified by a second partyVerified by a second partylibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.