This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Doubt on the doubt! (Re: [RFC] Doubts about our istream::ignore)
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Nathan Myers <ncm-nospam at cantrip dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 21 May 2004 10:46:42 +0200
- Subject: Doubt on the doubt! (Re: [RFC] Doubts about our istream::ignore)
- References: <40ACFAB6.7040602@suse.de> <20040520233320.GC17481@tofu.dreamhost.com>
Nathan Myers wrote:
Of course, now that streamsize is 64 bits, it would take longer than the
remaining lifetime of the universe (or, perhaps, the remaining fossil
fuels) to get there. (That assumes Moore's law will get used up, too.)
Nathan, streamsize is a typedef for ptrdiff_t!!!
Therefore, if I'm not mistaken, on 32-bit machine, its max() is "just" 2G!
It looks like we should really fix ignore, then...
Paolo.
P.S. For counting we are using everywhere streamsize, correctly, I think.