Ticket #4102 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

problem about reopening input stream

Reported by: lv.jcfly@… Owned by: turkanis
Milestone: Boost 1.43.0 Component: iostreams
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:


	boost::iostreams::stream<boost::iostreams::array_source> is;
	char buf[100];, sizeof(buf));
	BOOST_ASSERT(! is.is_open());	// OK, sizeof(buf));
	is.close();			// the stream isn't closed correctly here

	BOOST_ASSERT(! is.is_open());	// failed. the stream is still open, sizeof(buf));	// throws an exception ("already open")


Change History

comment:1 Changed 5 years ago by steven_watanabe

  • Status changed from new to closed
  • Resolution set to fixed

(In [63036]) Make sure that direct_streambuf and indirect_streambuf are reset correctly on open. Fixes #4102.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.