Opened 6 years ago
Last modified 6 years ago
#12371 closed Bugs
boost thread/future.hpp fails to build — at Version 2
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 (2)
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 |
Note:
See TracTickets
for help on using tickets.