Opened 9 years ago

Closed 9 years ago

#8829 closed Bugs (fixed)

Syntax error in detail/freelist.hpp

Reported by: nikkikom@… Owned by: timblechmann
Milestone: To Be Determined Component: lockfree
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (1)

comment:1 by timblechmann, 9 years ago

Resolution: fixed
Status: newclosed

(In [85070]) lockfree: compile fix

fixes #8829

Note: See TracTickets for help on using tickets.