Re: [Boost-bugs] [Boost C++ Libraries] #10751: exception_detail::set_info should use make_shared

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10751: exception_detail::set_info should use make_shared
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-05 20:23:34


#10751: exception_detail::set_info should use make_shared
--------------------------------------+----------------------------
  Reporter: Li Yinan <li_yinan@…> | Owner: emildotchevski
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: exception
   Version: Boost Development Trunk | Severity: Problem
Resolution: worksforme | Keywords:
--------------------------------------+----------------------------

Comment (by emildotchevski):

 This isn't necessarily true: the free space may by fragmented and it is
 possible that two smaller allocations succeed while the single bigger
 allocation from make_shared fails.

 Either way the program should be exception-safe in case adding error info
 throws.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10751#comment:3>
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:17 UTC