This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] Another look at LFS vs filebuf::showmanyc
- From: Dirk Jagdmann <jagdmann at gmail dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 20 Sep 2004 19:55:56 +0200
- Subject: Re: [RFC] Another look at LFS vs filebuf::showmanyc
- References: <414EFBF9.70906@suse.de> <414EFD30.7040802@suse.de>
- Reply-to: Dirk Jagdmann <jagdmann at gmail dot com>
> What about returning numeric_limits<streamsize>::max() in such cases?
sounds reasonable, because that way you have usable code. And I don't
think someone really wants to do something like
std::vector<int> (stream.rdbuf().showmanyc());
with possible >2G of characters on a 32bit platform.
And further showmanyc() is required to return *a* number of characters
that can be read with blocking, but not necessarily the maximum
number.
--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org