We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be7676b commit 13e0070Copy full SHA for 13e0070
include/boost/decimal/detail/io.hpp
@@ -37,7 +37,7 @@ auto operator>>(std::basic_istream<charT, traits>& is, DecimalType& d)
37
-> std::enable_if_t<detail::is_decimal_floating_point_v<DecimalType>, std::basic_istream<charT, traits>&>
38
{
39
charT t_buffer[1024] {}; // What should be an unreasonably high maximum
40
- is >> t_buffer;
+ is >> std::setw(1023) >> t_buffer;
41
42
char buffer[1024] {};
43
0 commit comments