[Boost-bugs] [Boost C++ Libraries] #1002: [iostreams] close_impl<closable_tag> does not comply with spec

Subject: [Boost-bugs] [Boost C++ Libraries] #1002: [iostreams] close_impl<closable_tag> does not comply with spec
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-05-28 02:04:53


#1002: [iostreams] close_impl<closable_tag> does not comply with spec
-------------------------------+--------------------------------------------
 Reporter: chad_at_[hidden] | Type: Bugs
   Status: new | Milestone:
Component: None | Version:
 Severity: Problem | Keywords:
-------------------------------+--------------------------------------------
 I experienced a problem where a composite Device inside a tee_device was
 not getting closed when appropriate.

 The root cause of the problem is that the implementation of
 close.hpp::close_impl<closable_tag>::close() is not in accordance with the
 documentation
 (http://www.boost.org/libs/iostreams/doc/functions/close.html).

 According to the documentation, my closable composite should be closed
 when close() is invoked with an open mode of (in|out), but the code as
 written does not allow for this. The patch is attached.

 Thanks to gchen (chengang31_at_[hidden]), who pointed me to the problem
 location.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1002>
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:49:55 UTC