$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Futures Review - ??? shared_future<T>::get()
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-01-23 19:14:06
Hi,
In C++0x
const R& shared_future::get() const;
R& shared_future<R&>::get() const;
void shared_future<void>::get() const;
In the documentation We found in the synopsis class
R get();
in the Member function get()
const R& get();
in the description
Effects:If *this is associated with an asynchronous result, waits until the result is ready as-if by a call to jss::shared_future<R>::wait(), and returns a const reference to the result.
Returns:If the result type R is a reference, returns the stored reference. If R is void, there is no return value. Otherwise, returns a const reference to the value stored in the asynchronous result.
In the code we have
R get()
There is a lot of incoherences. Which is the correct one?
Vicente