Boost C++ Libraries: Ticket #10897: Pool allocator does not perfect forward its arguments https://svn.boost.org/trac10/ticket/10897 <p> The pool_allocator library has not been updated to C++11 yet. One of the greatest missing feature is the lack of perfect forwarding of the parameters of "conctruct" in pool_allocator and fast_pool_allocator. This prevent the move constructor of the allocated object to be called. Right now the construct implementation is as follow: </p> <pre class="wiki">static void construct(const pointer ptr, const value_type &amp; t) { new (ptr) T(t); } </pre><p> while it should be: </p> <pre class="wiki">template&lt;typename ...Args&gt; static void construct(const pointer ptr, Args&amp;&amp; ...args) { new (ptr) T(std::forward&lt;Args&gt; (args)...); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10897 Trac 1.4.3 malcolm.parsons@… Mon, 13 Jun 2016 14:03:50 GMT <link>https://svn.boost.org/trac10/ticket/10897#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10897#comment:1</guid> <description> <p> See <a class="ext-link" href="https://github.com/boostorg/pool/pull/8"><span class="icon">​</span>https://github.com/boostorg/pool/pull/8</a> </p> </description> <category>Ticket</category> </item> <item> <author>malcolm.parsons@…</author> <pubDate>Mon, 13 Jun 2016 14:17:05 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/10897#comment:2 https://svn.boost.org/trac10/ticket/10897#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Pool allocator does not perfect forward it's argument</span> → <span class="trac-field-new">Pool allocator does not perfect forward its arguments</span> </li> </ul> Ticket