Opened 6 years ago

Last modified 6 years ago

#12371 closed Bugs

boost thread/future.hpp fails to build — at Version 2

Reported by: Matthew Ferrante <matthew.ferrante717@…> Owned by: viboes
Milestone: Boost 1.62.0 Component: thread
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes)

Upgrading from Boost 1.41 to 1.61. When compiling an application that uses boost thread library, I get the following errors:

/usr/local/include/boost/thread/future.hpp: In member function ‘void boost::detail::future_async_shared_state<Rp, Fp>::init(const Fp&)’:
/usr/local/include/boost/thread/future.hpp:856: error: expected primary-expression before ‘(’ token
/usr/local/include/boost/thread/future.hpp: In member function ‘void boost::detail::future_async_shared_state<void, Fp>::init(const Fp&)’:
/usr/local/include/boost/thread/future.hpp:881: error: expected primary-expression before ‘(’ token
/usr/local/include/boost/thread/future.hpp: In member function ‘void boost::detail::future_async_shared_state<Rp&, Fp>::init(const Fp&)’:
/usr/local/include/boost/thread/future.hpp:907: error: expected primary-expression before ‘(’ token

Each of these lines is a call to the boost::thread constructor, but they are not prepended with the "boost::" namespace. Adding "boost::" to these three lines fixes the error.

Change History (2)

comment:1 by Matthew Ferrante <matthew.ferrante717@…>, 6 years ago

Component: Nonethread
Owner: set to Anthony Williams

comment:2 by viboes, 6 years ago

Description: modified (diff)
Owner: changed from Anthony Williams to viboes
Status: newassigned
Note: See TracTickets for help on using tickets.