$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: pdimov_at_[hidden]
Date: 2008-02-19 09:59:29
Author: pdimov
Date: 2008-02-19 09:59:28 EST (Tue, 19 Feb 2008)
New Revision: 43320
URL: http://svn.boost.org/trac/boost/changeset/43320
Log:
Fix #1646.
Text files modified: 
   trunk/libs/bind/bind.html |    11 ++++++-----                             
   1 files changed, 6 insertions(+), 5 deletions(-)
Modified: trunk/libs/bind/bind.html
==============================================================================
--- trunk/libs/bind/bind.html	(original)
+++ trunk/libs/bind/bind.html	2008-02-19 09:59:28 EST (Tue, 19 Feb 2008)
@@ -306,13 +306,13 @@
                         evaluation, use <tt>protect(bind(f, ...))</tt>.</P>
                 <h3><a name="operators">Overloaded operators</a> (new in Boost 1.33)</h3>
                 <p>For convenience, the function objects produced by <tt>bind</tt> overload the 
-			logical not operator <STRONG>!</STRONG> and the relational operators <STRONG>==</STRONG>,
-			<STRONG>!=</STRONG>, <STRONG><</STRONG>, <STRONG><=</STRONG>, <STRONG>></STRONG>,
-			<STRONG>>=</STRONG>.</p>
+			logical not operator <code>!</code> and the relational and logical operators <code>==</code>,
+			<code>!=</code>, <code><</code>, <code><=</code>, <code>></code>,
+			<code>>=</code>, <code>&&</code>, <code>||</code>.</p>
                 <P><tt>!bind(f, ...)</tt> is equivalent to <tt>bind( <EM>logical_not</EM>(), bind(f, 
                                 ...) )</tt>, where <tt><EM>logical_not</EM></tt> is a function object that 
                         takes one argument <tt>x</tt> and returns <tt>!x</tt>.</P>
-		<P><tt>bind(f, ...) <EM>op</EM> x</tt>, where <EM>op</EM> is a relational operator, 
+		<P><tt>bind(f, ...) <EM>op</EM> x</tt>, where <EM>op</EM> is a relational or logical operator, 
                         is equivalent to <tt>bind( <EM>relation</EM>(), bind(f, ...), x )</tt>, where <em>relation</em>
                         is a function object that takes two arguments <tt>a</tt> and <tt>b</tt> and 
                         returns <tt>a <EM>op</EM> b</tt>.</P>
@@ -320,7 +320,8 @@
                 <P><tt>std::remove_if( first, last, !bind( &X::visible, _1 ) ); // remove invisible 
                                 objects</tt></P>
                 <P>and compare the result of <tt>bind</tt> against a value:</P>
-		<P><tt>std::find_if( first, last, bind( &X::name, _1 ) == "peter" );</tt></P>
+		<P><tt>std::find_if( first, last, bind( &X::name, _1 ) == "Peter" );</tt></P>
+		<P><tt>std::find_if( first, last, bind( &X::name, _1 ) == "Peter" || bind( &X::name, _1 ) == "Paul" );</tt></P>
                 <P>against a placeholder:</P>
                 <P><tt>bind( &X::name, _1 ) == _2</tt></P>
                 <P>or against another <tt>bind</tt> expression:</P>