[Boost-bugs] [Boost C++ Libraries] #8829: Syntax error in detail/freelist.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #8829: Syntax error in detail/freelist.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-16 13:16:14


#8829: Syntax error in detail/freelist.hpp
------------------------------+--------------------------
 Reporter: nikkikom@… | Owner: timblechmann
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lockfree
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+--------------------------
 Compiler:
 Thread model: posix
 gcc version 4.9.0 20130512 (experimental) (MacPorts gcc49 4.9-20130512_0)
 Boost: boost 1.54.

 I tried to compile documentation examples and got the syntax error:


 {{{
 /opt/local/include/boost/lockfree/detail/freelist.hpp:113:39: error: no
 matching function for call to
 'boost::lockfree::detail::tagged_ptr<boost::lockfree::detail::freelist_stack<boost::lockfree::queue<int>::node,
 std::allocator<boost::lockfree::queue<int>::node>
>::freelist_node>::tagged_ptr(boost::atomic<boost::lockfree::detail::tagged_ptr<boost::lockfree::detail::freelist_stack<boost::lockfree::queue<int>::node,
 std::allocator<boost::lockfree::queue<int>::node> >::freelist_node> >&)'
          tagged_node_ptr current (pool_);
 }}}


 I fix it by changing
 {{{
 tagged_node_ptr current (pool_);
 }}}
 to
 {{{
 tagged_node_ptr current (pool_.load ());
 }}}

 Don't know is it correct or not.

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