Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7045: Thread library does not automatically compile date_time
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-03 16:59:49
#7045: Thread library does not automatically compile date_time
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by viboes):
I don't understand the warning
{{{
1>c:\program files\c++\boost\boost\thread\future.hpp(1624): warning C4702:
unreachable code
}}}
given the following code
{{{
BOOST_THREAD_FUTURE<R> get_future()
{
if(!task)
{
boost::throw_exception(task_moved());
}
else if(!future_obtained)
{
future_obtained=true;
return BOOST_THREAD_FUTURE<R>(task);
}
else
{
boost::throw_exception(future_already_retrieved());
}
return BOOST_THREAD_FUTURE<R>();
}
}}}
Could you point me where is the problem?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7045#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