Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52041 - in branches/release: boost/bind libs/bind/test
From: pdimov_at_[hidden]
Date: 2009-03-28 16:56:16


Author: pdimov
Date: 2009-03-28 16:56:16 EDT (Sat, 28 Mar 2009)
New Revision: 52041
URL: http://svn.boost.org/trac/boost/changeset/52041

Log:
Merge [51979] to release. Closes #2849.
Added:
   branches/release/libs/bind/test/bind_eq3_test.cpp
      - copied unchanged from r51979, /trunk/libs/bind/test/bind_eq3_test.cpp
Text files modified:
   branches/release/boost/bind/bind.hpp | 9 +++++++++
   branches/release/libs/bind/test/Jamfile.v2 | 1 +
   2 files changed, 10 insertions(+), 0 deletions(-)

Modified: branches/release/boost/bind/bind.hpp
==============================================================================
--- branches/release/boost/bind/bind.hpp (original)
+++ branches/release/boost/bind/bind.hpp 2009-03-28 16:56:16 EDT (Sat, 28 Mar 2009)
@@ -48,6 +48,8 @@
 namespace boost
 {
 
+template<class T> class weak_ptr;
+
 namespace _bi // implementation details
 {
 
@@ -126,6 +128,13 @@
     T t_;
 };
 
+// ref_compare for weak_ptr
+
+template<class T> bool ref_compare( value< weak_ptr<T> > const & a, value< weak_ptr<T> > const & b, int )
+{
+ return !(a.get() < b.get()) && !(b.get() < a.get());
+}
+
 // type
 
 template<class T> class type {};

Modified: branches/release/libs/bind/test/Jamfile.v2
==============================================================================
--- branches/release/libs/bind/test/Jamfile.v2 (original)
+++ branches/release/libs/bind/test/Jamfile.v2 2009-03-28 16:56:16 EDT (Sat, 28 Mar 2009)
@@ -41,4 +41,5 @@
       [ run bind_eq2_test.cpp ]
       [ run mem_fn_ref_test.cpp ]
       [ run bind_ref_test.cpp ]
+ [ run bind_eq3_test.cpp ]
     ;


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