|
Boost Users : |
Subject: Re: [Boost-users] [Thread] 1.53 fails to compile working code
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-02-08 18:35:32
Le 08/02/13 08:46, Szymon Gatner a écrit :
> 2013/2/8 Jeffrey Lee Hellrung, Jr. <jeffrey.hellrung_at_[hidden]>:
>> This looks like an error in the future_traits<T>::init overload set...it's
>> missing an overload that a T const & can bind to (in the second argument).
>>
>> Also, I think it would be an improvement if set_value_at_thread_exit was
>> able to catch rvalues as emulated rvalue references (when true rvalue
>> references are unavailable) rather than as lvalue-reference-to-const.
>>
> Yes indeed, there is an overload resolution ambiguity. I guess movable
> / emulation stuff in Thread is more difficult to manage since it
> maintains 2 move emulations (original one from Thread and Move). Move
> already provides BOOST_RV_REF(T) macro which is T&& on compiler that
> support it and rv<T>& when emulating and this imho is the argument
> type future_traits<T>::init() should use to disambiguate.
>
> Is the original move emulation even still needed in Thread code. It
> seems like half on BOOST_THREAD macros try to deal with move
> semantics.
>
Hi,
please could you create a Trac ticket?
Thanks,
Vicente
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net