Boost C++ Libraries: Ticket #13282: Allocator compilation problems with gcc 4.8.1 https://svn.boost.org/trac10/ticket/13282 <p> Hello all, </p> <p> thanks for providing this great software. Just a remark, when I tried to use the allocators with gcc 4.8.x it fails during the instantiation. </p> <pre class="wiki">#include &lt;set&gt; #include &lt;boost/container/allocator.hpp&gt; #include &lt;boost/container/adaptive_pool.hpp&gt; int foo() { using myset= std::set&lt;int, std::less&lt;int&gt;, boost::container::allocator&lt;int&gt;&gt;; myset test_set; return 1; } </pre><p> fails with </p> <pre class="wiki">In file included from /opt/compiler-explorer/gcc-4.8.5/include/c++/4.8.5/set:60:0, from &lt;source&gt;:1: /opt/compiler-explorer/gcc-4.8.5/include/c++/4.8.5/bits/stl_tree.h: In instantiation of 'void std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_destroy_node(std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_Link_type) [with _Key = int; _Val = int; _KeyOfValue = std::_Identity&lt;int&gt;; _Compare = std::less&lt;int&gt;; _Alloc = boost::container::allocator&lt;int&gt;; std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_Link_type = std::_Rb_tree_node&lt;int&gt;*]': /opt/compiler-explorer/gcc-4.8.5/include/c++/4.8.5/bits/stl_tree.h:1127:23: required from 'void std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_erase(std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_Link_type) [with _Key = int; _Val = int; _KeyOfValue = std::_Identity&lt;int&gt;; _Compare = std::less&lt;int&gt;; _Alloc = boost::container::allocator&lt;int&gt;; std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_Link_type = std::_Rb_tree_node&lt;int&gt;*]' /opt/compiler-explorer/gcc-4.8.5/include/c++/4.8.5/bits/stl_tree.h:671:28: required from 'std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::~_Rb_tree() [with _Key = int; _Val = int; _KeyOfValue = std::_Identity&lt;int&gt;; _Compare = std::less&lt;int&gt;; _Alloc = boost::container::allocator&lt;int&gt;]' /opt/compiler-explorer/gcc-4.8.5/include/c++/4.8.5/bits/stl_set.h:90:11: required from here /opt/compiler-explorer/gcc-4.8.5/include/c++/4.8.5/bits/stl_tree.h:421:2: error: 'std::_Rb_tree&lt;int, int, std::_Identity&lt;int&gt;, std::less&lt;int&gt;, boost::container::allocator&lt;int&gt; &gt;::_Node_allocator' has no member named 'destroy' _M_get_Node_allocator().destroy(__p); ^ Compiler exited with result code 1 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13282 Trac 1.4.3