[cpp-threads] Thread API interface tweaks

Alexander Terekhov alexander.terekhov at gmail.com
Tue Aug 29 15:52:44 BST 2006


On 8/29/06, Peter Dimov <pdimov at mmltd.net> wrote:
[...]
> > enable me to inspect the union
> > without throwing/catching any exceptions, then I'll be totally happy.
>
> I'm not sure what do you mean by that... can you elaborate?

I basically mean boost::apply_visitor() for boost::variant<
future_not_ready, future_ready_with_return_value<T>,
future_ready_with_exception<T>, future_ready_with_exception<U> ...
X,Y,Z > in future<> object. No?

regards,
alexander.



More information about the cpp-threads mailing list