Re: [Boost-bugs] [Boost C++ Libraries] #9711: future continuation called twice

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9711: future continuation called twice
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-25 14:46:54


#9711: future continuation called twice
-------------------------------+----------------------
  Reporter: anonymous | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: threads
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords: futures
-------------------------------+----------------------

Comment (by ikispal@…):

 What is even worse:
 if the future returned by then() is not void, then:

 * the first call of its get() will call the continuation a second time
 (as described above) and will return with the result of this erroneous
 second invocation!

 * the second call of its get() will return with an empty (default
 constructed?) value!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9711#comment:3>
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:15 UTC