|
Boost-Commit : |
From: hinnant_at_[hidden]
Date: 2007-11-07 14:06:57
Author: hinnant
Date: 2007-11-07 14:06:56 EST (Wed, 07 Nov 2007)
New Revision: 40904
URL: http://svn.boost.org/trac/boost/changeset/40904
Log:
changed unspecified bool to explicit bool in unique_ptr
Text files modified:
sandbox/committee/LWG/thread_library.html | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Modified: sandbox/committee/LWG/thread_library.html
==============================================================================
--- sandbox/committee/LWG/thread_library.html (original)
+++ sandbox/committee/LWG/thread_library.html 2007-11-07 14:06:56 EST (Wed, 07 Nov 2007)
@@ -1441,7 +1441,7 @@
void unlock();
bool owns_lock() const;
- operator <var>unspecified-bool-type</var> () const;
+ explicit operator bool () const;
mutex_type* mutex() const;
void swap(unique_lock&& <var>u</var>);
@@ -1809,14 +1809,13 @@
</dl>
<pre><code>
-operator <var>unspecified-bool-type</var> () const;
+explicit operator bool () const;
</code></pre>
<dl>
<dt>Returns:</dt>
<dd>
-Non-null if <code>owns_lock()</code> would return <code>true</code>,
-else returns null.
+<code>owns_lock()</code>.
</dd>
<dt>Throws:</dt>
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