Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12371: boost thread/future.hpp fails to build
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-08 23:12:30
#12371: boost thread/future.hpp fails to build
-------------------------------------------------+-------------------------
Reporter: Matthew Ferrante | Owner: viboes
<matthew.ferrante717@â¦> | Status: assigned
Type: Bugs | Component: thread
Milestone: To Be Determined | Severity: Problem
Version: Boost 1.61.0 | Keywords:
Resolution: |
-------------------------------------------------+-------------------------
Changes (by viboes):
* owner: anthonyw => viboes
* status: new => assigned
Old 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.
New 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.
-- -- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12371#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC