From 593e9e0f2fb286038b79148bbe29f0148e4032b8 Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sat, 8 Dec 2012 11:01:15 +0000 Subject: [PATCH] Thread: fix shared_ptr implicit conversion to bool introduced in [81780] [SVN r81788] --- src/pthread/thread.cpp | 2 +- src/win32/thread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pthread/thread.cpp b/src/pthread/thread.cpp index 73dd0c31..98737444 100644 --- a/src/pthread/thread.cpp +++ b/src/pthread/thread.cpp @@ -395,7 +395,7 @@ namespace boost bool thread::joinable() const BOOST_NOEXCEPT { - return (get_thread_info)(); + return (get_thread_info)()!=0; } diff --git a/src/win32/thread.cpp b/src/win32/thread.cpp index 5048c239..3f691e07 100644 --- a/src/win32/thread.cpp +++ b/src/win32/thread.cpp @@ -330,7 +330,7 @@ namespace boost bool thread::joinable() const BOOST_NOEXCEPT { - return (get_thread_info)(); + return (get_thread_info)() != 0; } bool thread::join_noexcept() {