
9 Dec
2012
9 Dec
'12
11:18 a.m.
Le 08/12/12 15:20, Peter Dimov a écrit :
Vicente J. Botet Escriba wrote:
Hi,
https://svn.boost.org/trac/boost/changeset/81780 " Use explicit operator bool when available; ..." introduces a breaking change on shared_ptr in Boost.Thread and Boost.Test at least.
What code does it break? Code like
bool thread::joinable() const BOOST_NOEXCEPT { return get_thread_info(); // COMPILE ERROR } which I have replaced by bool thread::joinable() const BOOST_NOEXCEPT { return get_thread_info()!=0; } Is there a better way? Best, Vicente