Opened 8 years ago

Closed 7 years ago

#4102 closed Bugs (fixed)

problem about reopening input stream

Reported by: lv.jcfly@… Owned by: Jonathan 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")

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Steven Watanabe

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jonathan Turkanis.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.