Opened 6 years ago
Closed 6 years ago
#12371 closed Bugs (fixed)
boost thread/future.hpp fails to build
| Reported by: | Owned by: | viboes | |
|---|---|---|---|
| Milestone: | Boost 1.62.0 | Component: | thread | 
| Version: | Boost 1.61.0 | Severity: | Problem | 
| Keywords: | Cc: | 
Description (last modified by )
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 (5)
comment:1 by , 6 years ago
| Component: | None → thread | 
|---|---|
| Owner: | set to | 
comment:2 by , 6 years ago
| Description: | modified (diff) | 
|---|---|
| Owner: | changed from to | 
| Status: | new → assigned | 
comment:3 by , 6 years ago
comment:4 by , 6 years ago
| Milestone: | To Be Determined → Boost 1.62.0 | 
|---|
This seems to be already fixed.
comment:5 by , 6 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | assigned → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    

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