[RFC] Another look at LFS vs filebuf::showmanyc
Dirk Jagdmann
jagdmann@gmail.com
Mon Sep 20 17:57:00 GMT 2004
> 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
More information about the Libstdc++
mailing list