id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1002,[iostreams] close_impl does not comply with spec,chad@…,Jonathan Turkanis,"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::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@gmail.com), who pointed me to the problem location. ",Bugs,closed,,iostreams,,Problem,fixed,,