Opened 6 years ago

Last modified 6 years ago

#12371 closed Bugs

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

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

Description

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 (0)

Note: See TracTickets for help on using tickets.