Opened 12 years ago

Closed 12 years ago

#5148 closed Bugs (invalid)

tellg requires seekable, even though it's not a seek operation

Reported by: anonymous Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:

Description

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

}

Change History (2)

comment:1 by anonymous, 12 years ago

Submiting new tickets on chrome doesn't work, gives the following trac error: "Missing or invalid form token. Do you have cookies enabled?". While yes, cookies are enabled, is a poor error message.

Submiting from IE 8 works, but if I include the link with the correct protocol, http, will give another very unhelpful error. The error in question points out that the ticket might be spam, and then tells me something along the lines of "But answer the following question to confirm it's not spam", followed by nothing, making it hard to progress.

comment:2 by Steven Watanabe, 12 years ago

Resolution: invalid
Status: newclosed

This is how tellg is defined. Sorry.

Note: See TracTickets for help on using tickets.