|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-07-02 11:38:36
Bo Persson wrote:
> "Jonathan Turkanis" <technews_at_[hidden]> skrev i meddelandet
> news:da4hie$tav$1_at_sea.gmane.org...
>> Cory Nelson wrote:
>>> The deprecated functions/methods I've seen all take buffers as
>>> arguments but not their sizes.
>>
>> That's one reason I'm puzzled by the deprecation of istream::read and
>> streambuf::sgetn, which take buffer size parameters.
>
> No, they don't. They take requested number of characters to read. What
> if the buffer is smaller? :-)
Heh, okay. These 'safe' functions require a little cooperation from the user.
> They have definitely gone overboard in this case!
According to John's post, they've come to their senses, at least partially.
> Bo Persson
Jonathan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk