From 2ac2eb2a614e4e6b590592aaefe187008073a2ce Mon Sep 17 00:00:00 2001 From: Anthony Williams Date: Wed, 21 May 2008 10:39:47 +0000 Subject: [PATCH] try_lock_wrapper has its own operator bool_type to avoid problems with a using declaration [SVN r45602] --- include/boost/thread/locks.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/thread/locks.hpp b/include/boost/thread/locks.hpp index e2a9e6eb..0fe66bb6 100644 --- a/include/boost/thread/locks.hpp +++ b/include/boost/thread/locks.hpp @@ -629,7 +629,10 @@ namespace boost using base::mutex; using base::release; typedef typename base::bool_type bool_type; - using base::operator bool_type; + operator bool_type() const + { + return static_cast(*this); + } }; template