Re: [Boost-bugs] [Boost C++ Libraries] #8674: Futures as local named objects can't be returned with implicit move.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8674: Futures as local named objects can't be returned with implicit move.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-08 21:47:33


#8674: Futures as local named objects can't be returned with implicit move.
-------------------------------+----------------------
  Reporter: mjklaim@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by mjklaim@…):

 I asked [http://www.developpez.net/forums/d1351972/boost/boostfuture-n
 -est-pas-retournable-via-implicite-move-vs2012-u2/ on a french C++ forum]
 if someone could test with VS2012 November CTP1 (which add several c++11
 features but can't be used safely in production).

 Loic Joly reported the same error (which copying here);


 {{{
 1>------ Début de la génération*: Projet*: TestFutureCTP (Microsoft Visual
 C++ Compiler Nov 2012 CTP), Configuration*: Debug Win32 ------
 1> 'Microsoft Visual C++ Compiler Nov 2012 CTP' is for testing purposes
 only.
 1> Source.cpp
 1> ****\visual studio 2012\projects\testfuturectp\source.cpp(29): error
 C2248: 'boost::future<void>::future' : cannot access private member
 declared in class 'boost::future<void>'
 1> d:\boost\boost_1_53_0\boost\thread\future.hpp(1406) : see
 declaration of 'boost::future<void>::future'
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8674#comment:5>
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:13 UTC