Re: [Boost-bugs] [Boost C++ Libraries] #8724: bad_alloc thrown in empty list copy constructor

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8724: bad_alloc thrown in empty list copy constructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-24 19:03:05


#8724: bad_alloc thrown in empty list copy constructor
----------------------------+----------------------------------------------
  Reporter: gleonid@… | Owner: igaztanaga
      Type: Bugs | Status: closed
 Milestone: To Be | Component: interprocess
  Determined | Severity: Problem
   Version: Boost 1.53.0 | Keywords: bad_alloc interprocess container
Resolution: fixed |
----------------------------+----------------------------------------------
Changes (by igaztanaga):

 * status: new => closed
 * resolution: => fixed

Comment:

 Thanks for the report. It's a bug.

 To get a workaround, modify allocate_many_and_construct() function of
 boost/container/detail/node_alloc_holder.hpp file so that if "n" is zero,
 no code is executed. This function should do nothing if "difference_type
 n" argument is zero (as it's your case, since the source container is
 empty.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8724#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:13 UTC