Re: [Boost-bugs] [Boost C++ Libraries] #2449: tellg() not working for filtering_istream

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2449: tellg() not working for filtering_istream
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-16 16:17:28


#2449: tellg() not working for filtering_istream
-----------------------------------------------+----------------------------
 Reporter: rbock@… | Owner: turkanis
     Type: Bugs | Status: assigned
Milestone: Boost 1.37.0 | Component: iostreams
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: iostreams filtering_istream tellg |
-----------------------------------------------+----------------------------

Comment(by rbock@…):

 Replying to [comment:3 steven_watanabe]:
> After poking through the source for a while, I'm beginning to think that
 this behavior is by design. You can make the example work using
>
> {{{
> boost::iostreams::filtering_stream<boost::iostreams::input_seekable>
> }}}

 Hmm. In that case, wouldn't it be better to throw an exception with some
 meaningful text instead of just returning -1 and invalidating the stream
 (good() == false)?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2449#comment:4>
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:03 UTC