bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_M_extract_buffer_length = 32


From: k
Subject: _M_extract_buffer_length = 32
Date: 2 Apr 2002 01:41:32 GMT

In the "double" overloaded version of do_get()  (buried inside
i686-pc-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc), the comment
makes reference to "the size of 256" (line 595 for 3.0.3), but
the array __xtrc is declared to be of length 32 (i.e.,
_M_extract_buffer_length).  This is probably a bug.
My problem is trying to get this bit of code to work:
double x; cin >> x;
and I input "0.12345678901234567890123456789012345678901234567"
Anything more than 30 digits past the decimal point
breaks.  I want it to gracefully round or truncate.
Suggestions?
Thanks,
Ken Takusagawa

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts
made through NewsOne.Net violate posting guidelines, email address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]