Boost C++ Libraries: Ticket #10716: Pool allocators fail to compile under g++4.7, 4.8 and 4.9 https://svn.boost.org/trac10/ticket/10716 <p> Hi, </p> <p> Usage of either boost::pool_allocator or boost::fast_pool_allocator with std::allocate_shared can cause compile errors on the g++4.7, 4.8, 4.9. There is much more detailed information on the stack overflow question I made: <a class="ext-link" href="http://stackoverflow.com/questions/26396293/boost-pool-allocators-wont-compile-with-stdallocate-shared-in-g"><span class="icon">​</span>http://stackoverflow.com/questions/26396293/boost-pool-allocators-wont-compile-with-stdallocate-shared-in-g</a> </p> <p> Code exhibiting the error: </p> <pre class="wiki">#include "boost/pool/pool.hpp" #include "boost/pool/pool_alloc.hpp" #include &lt;memory&gt; int main(int argc, char** argv) { auto fails = std::allocate_shared&lt;int&gt;( boost::fast_pool_allocator&lt;int&gt;() ); auto works = std::allocate_shared&lt;int&gt;(boost::fast_pool_allocator&lt;int&gt;(), 5); } </pre><p> Simply put boost allocators are still specified using the c++98 style and this causes g++ to fail for the versions of g++ mentioned above. However it should be noted that g++ 5.0 does compile correctly and this implies that updating is not necessarily mandatory. I have made this ticket so that the appropriate people can make a determination about whether to fix this or not. Also note that changing to the c++11 allocator style seems to be straightforward. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10716 Trac 1.4.3