Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76951 - trunk/boost/thread
From: vicente.botet_at_[hidden]
Date: 2012-02-08 16:32:06


Author: viboes
Date: 2012-02-08 16:32:05 EST (Wed, 08 Feb 2012)
New Revision: 76951
URL: http://svn.boost.org/trac/boost/changeset/76951

Log:
Thread: Added explicit to operator bool for locks
Text files modified:
   trunk/boost/thread/locks.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/thread/locks.hpp
==============================================================================
--- trunk/boost/thread/locks.hpp (original)
+++ trunk/boost/thread/locks.hpp 2012-02-08 16:32:05 EST (Wed, 08 Feb 2012)
@@ -611,7 +611,7 @@
             return !owns_lock();
         }
 #else
- operator bool() const BOOST_NOEXCEPT
+ explicit operator bool() const BOOST_NOEXCEPT
         {
             return owns_lock();
         }
@@ -942,7 +942,7 @@
             return !owns_lock();
         }
 #else
- operator bool() const
+ explicit operator bool() const
         {
             return owns_lock();
         }
@@ -1183,7 +1183,7 @@
             return !owns_lock();
         }
 #else
- operator bool() const
+ explicit operator bool() const
         {
             return owns_lock();
         }
@@ -1320,7 +1320,7 @@
             return !owns_lock();
         }
 #else
- operator bool() const
+ explicit operator bool() const
         {
             return owns_lock();
         }
@@ -1474,7 +1474,7 @@
                 return !this->owns_lock();
             }
 #else
- operator bool() const
+ explicit operator bool() const
             {
                 return owns_lock();
             }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk