[Boost-bugs] [Boost C++ Libraries] #6611: boost::pool_allocator construct() with single argument required by GCC 4.6 stl

Subject: [Boost-bugs] [Boost C++ Libraries] #6611: boost::pool_allocator construct() with single argument required by GCC 4.6 stl
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-24 19:14:41


#6611: boost::pool_allocator construct() with single argument required by GCC 4.6
stl
-------------------------------------+--------------------------------------
 Reporter: vivien.millet@… | Type: Support Requests
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.48.0
 Severity: Problem | Keywords: pool_allocator construct
-------------------------------------+--------------------------------------
 I tried to compile a MSVC code using custom std::vector/pool_allocator
 under win32/codeblocks (which uses GCC 4.6.0), and I get an error because
 on vector::resize() and underlying call _ _ uninitialized_default_a(), the
 stl implemented try to call _ _ alloc.construct() with a single placement
 address as argument.

 The thing is that boost:pool_allocator provides only one version of
 construct() which takes 2 arguments.
 Why isn't a "default" construct( const pointer& ) implemented in
 pool_allocator ? Or why this version of the stl implements that ? Or what
 am I doing wrong ?

 Thanks

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