[Boost-bugs] [Boost C++ Libraries] #5148: tellg requires seekable, even though it's not a seek operation

Subject: [Boost-bugs] [Boost C++ Libraries] #5148: tellg requires seekable, even though it's not a seek operation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-01 16:08:31


#5148: tellg requires seekable, even though it's not a seek operation
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: turkanis
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Problem explained here: hxxp://groups.google.com/group/boost-
 list/browse_thread/thread/941d71547c4cc065?fwc=2&pli=1 . Example code
 demonstrating unexpected behavior included for brevity, in my case
 compiled on MSVC 2008 boost 1.44:
 #include <ostream>
 #include "boost/iostreams/categories.hpp"
 #include "boost/iostreams/filtering_stream.hpp"
 #include "boost/iostreams/filter/zlib.hpp"
 int main()
 {
         boost::iostreams::filtering_stream< boost::iostreams::input >
 strm( ( boost::iostreams::zlib_decompressor() ) );
         char sourceArr[512];
         strm.push( boost::iostreams::array_source( sourceArr, sourceArr +
 sizeof( sourceArr ) ) );
         strm.tellg(); // Throws even though we're not seeking, just
 reading the read head position
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5148>
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:05 UTC