Modify

#12371 closed Bugs (fixed)

boost thread/future.hpp fails to build

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.

Attachments (0)

Change History (5)

comment:1 Changed 14 months ago by Matthew Ferrante <matthew.ferrante717@…>

Component: Nonethread
Owner: set to Anthony Williams

comment:2 Changed 14 months ago by viboes

Description: modified (diff)
Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:3 Changed 14 months ago by viboes

Sorry for been late. I will take a look at asap.

comment:4 Changed 14 months ago by viboes

Milestone: To Be DeterminedBoost 1.62.0

This seems to be already fixed.

comment:5 Changed 13 months ago by viboes

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.