Modify

Ticket #4102 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 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:

Description

	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")

Attachments

Change History

comment:1 Changed 4 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.

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.