[Boost-bugs] [Boost C++ Libraries] #11752: basic_null_device::read returns 0 but -1 is expected

Subject: [Boost-bugs] [Boost C++ Libraries] #11752: basic_null_device::read returns 0 but -1 is expected
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-24 01:41:50


#11752: basic_null_device::read returns 0 but -1 is expected
---------------------------------------------+-----------------------
 Reporter: Nikolay Shelukhin <nikola-sh@…> | Owner: turkanis
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
---------------------------------------------+-----------------------
 Documentation:
 {{{
 basic_null_device::read
 "Returns -1. Enabled if Mode refines input."
 }}}
 Code:
 {{{
 template<typename Ch, typename Mode>
 class basic_null_device {
 public:
     ...
     std::streamsize read(Ch*, std::streamsize) { return 0; }
     ...
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11752>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC