This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Another look at LFS vs filebuf::showmanyc


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]