id summary reporter owner description type status milestone component version severity resolution keywords cc 2932 iostreams file_descriptor: possible throw of exception in call to destructor Robert Hunger Jonathan Turkanis "The implementation ""struct file_descriptor_impl"" used by ""class file_descriptor"" possibly throws an exception in its destructor. The following code snippets come from: [http://svn.boost.org/svn/boost/trunk/libs/iostreams/src/file_descriptor.cpp] line 77: {{{ file_descriptor_impl::~file_descriptor_impl() { if (flags_ & close_on_exit) close(); } }}} line 194: {{{ void file_descriptor_impl::close() ... if (!success) throw_system_failure(""failed closing file""); ... }}} IMHO throwing exceptions in destructors should be avoided." Bugs closed Boost 1.40.0 iostreams Boost 1.41.0 Showstopper fixed rhunger@… gareth.sylvester-bradley@…