Subject: [Boost-bugs] [Boost C++ Libraries] #4102: problem about reopening input stream
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-15 09:08:56
#4102: problem about reopening input stream
--------------------------------+-------------------------------------------
Reporter: lv.jcfly@⦠| Owner: turkanis
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: iostreams
Version: Boost 1.42.0 | Severity: Problem
Keywords: |
--------------------------------+-------------------------------------------
{{{
boost::iostreams::stream<boost::iostreams::array_source> is;
char buf[100];
is.open(buf, sizeof(buf));
is.close();
BOOST_ASSERT(! is.is_open()); // OK
is.open(buf, sizeof(buf));
is.close(); // the stream isn't closed
correctly here
BOOST_ASSERT(! is.is_open()); // failed. the stream is still
open
is.open(buf, sizeof(buf)); // throws an exception ("already
open")
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4102> 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:02 UTC