Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6222: Compile error with SunStudio: unique_future move
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-21 01:35:03
#6222: Compile error with SunStudio: unique_future move
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.48.0 | Severity: Showstopper
Resolution: | Keywords: move
-------------------------------+--------------------------------------------
Comment (by viboes):
The current implementation doesn't works on SunStudio as it is preferring
the overload to the private constructor instead of the conversion.
I have added a move() member function that should help to force the
conversion in trunk.
You can add the following
{{{
boost::detail::thread_move_t<unique_future> move()
{
return boost::detail::thread_move_t<unique_future>(*this);
}
}}}
Could you try this
{{{
boost::unique_future<int> future = pt.get_future().move();
}}}
Let me now if this work for you. I will add some documentation explaining
the limitation on SunStudio.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6222#comment:6> 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:09 UTC