[Boost-bugs] [Boost C++ Libraries] #3612: Throwing heap-allocated exceptions

Subject: [Boost-bugs] [Boost C++ Libraries] #3612: Throwing heap-allocated exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-11 23:17:28


#3612: Throwing heap-allocated exceptions
---------------------------------------------------+------------------------
 Reporter: Richard Smith <richard@…> | Owner: turkanis
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: iostreams
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 In four places in <boost/iostreams/device/mapped_file.hpp> heap-allocated
 exceptions are thrown, e.g.:

   throw new BOOST_IOSTREAMS_FAILURE("invalid flags");

 These should almost certainly be stack-allocated as elsewhere in
 Boost.IOStreams.

 Patch attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3612>
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:50:01 UTC