Boost C++ Libraries: Ticket #8829: Syntax error in detail/freelist.hpp https://svn.boost.org/trac10/ticket/8829 <p> Compiler: Thread model: posix gcc version 4.9.0 20130512 (experimental) (<a class="missing wiki">MacPorts</a> gcc49 4.9-20130512_0) Boost: boost 1.54. </p> <p> I tried to compile documentation examples and got the syntax error: </p> <pre class="wiki">/opt/local/include/boost/lockfree/detail/freelist.hpp:113:39: error: no matching function for call to 'boost::lockfree::detail::tagged_ptr&lt;boost::lockfree::detail::freelist_stack&lt;boost::lockfree::queue&lt;int&gt;::node, std::allocator&lt;boost::lockfree::queue&lt;int&gt;::node&gt; &gt;::freelist_node&gt;::tagged_ptr(boost::atomic&lt;boost::lockfree::detail::tagged_ptr&lt;boost::lockfree::detail::freelist_stack&lt;boost::lockfree::queue&lt;int&gt;::node, std::allocator&lt;boost::lockfree::queue&lt;int&gt;::node&gt; &gt;::freelist_node&gt; &gt;&amp;)' tagged_node_ptr current (pool_); </pre><p> I fix it by changing </p> <pre class="wiki">tagged_node_ptr current (pool_); </pre><p> to </p> <pre class="wiki">tagged_node_ptr current (pool_.load ()); </pre><p> Don't know is it correct or not. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8829 Trac 1.4.3 timblechmann Wed, 17 Jul 2013 22:13:48 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8829#comment:1 https://svn.boost.org/trac10/ticket/8829#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85070" title="lockfree: compile fix fixes #8829">[85070]</a>) lockfree: compile fix </p> <p> fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8829" title="#8829: Bugs: Syntax error in detail/freelist.hpp (closed: fixed)">#8829</a> </p> Ticket