Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-07-07 15:28:49


I just applied the following patch to test_bind_tricky.cpp; since
boost::bind's placeholders are sometimes inline functions, they can't be
passed to const T&. It might be better to have something that at least has a
chance to pass.

Index: libs/tr1/test/test_bind_tricky.cpp
=====================================================
RCS file: /cvsroot/boost/boost/libs/tr1/test/test_bind_tricky.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- libs/tr1/test/test_bind_tricky.cpp 12 Nov 2005 17:34:36 -0000 1.2
+++ libs/tr1/test/test_bind_tricky.cpp 7 Jul 2006 19:25:00 -0000 1.3
@@ -13,12 +13,12 @@
 #include "verify_return.hpp"

 template <class T>
-void check_placeholder(const T&)
+void check_placeholder( T )
 {
    T t;
    T t2(t);
    (void)t2;
- BOOST_STATIC_ASSERT(::std::tr1::is_placeholder<T>::value);
+ BOOST_STATIC_ASSERT( ::std::tr1::is_placeholder<T>::value > 0 );
 }


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk