Topic: Defect Report: 30.6.5 constructor shared_future(unique_future) by value?


Author: "Thomas J. Gritzan" <phygon_antispam@gmx.de>
Date: Fri, 3 Apr 2009 13:53:41 CST
Raw View
In the shared_future class definition in 30.6.5 the move constructor
that constructs a shared_future from an unique_future receives the
parameter by value. In paragraph 3, the same constructor receives it as
const value.

I think that is a mistake and the constructor should take a r-value
reference:

shared_future(unique_future<R>&& rhs);

--
Thomas J. Gritzan

[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]