Re: [Boost-bugs] [Boost C++ Libraries] #2481: make_shared and allocate_shared friendship

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2481: make_shared and allocate_shared friendship
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-07 21:22:20


#2481: make_shared and allocate_shared friendship
-----------------------------------------------------+----------------------
  Reporter: Michael Marcin <mike.marcin_at_[hidden]> | Owner: pdimov
      Type: Feature Requests | Status: assigned
 Milestone: Boost 1.39.0 | Component: smart_ptr
   Version: Boost 1.36.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------------+----------------------

Comment(by pdimov):

 It still seems to me that the best course of action is to make
 allocate_shared use A::construct. Unfortunately, this doesn't work with
 C++03 allocators, whose construct method only takes a single T const&
 argument. C++0x allocators are OK, but changing boost::allocate_shared to
 call construct will make it fail for C++03 allocators.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2481#comment:5>
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:49:59 UTC