|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2002-11-05 18:42:09
Even after applying other workarounds, the following patch seems to be
required to get the Boost.Bind test to pass on the latest Sun
compilers. Is it appropriate to apply this, or should this problem
cause the test to fail?
Index: libs/bind/bind_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/bind/bind_test.cpp,v
retrieving revision 1.13
diff -w -u -r1.13 bind_test.cpp
--- libs/bind/bind_test.cpp 15 Oct 2002 10:51:34 -0000 1.13
+++ libs/bind/bind_test.cpp 1 Nov 2002 02:47:30 -0000
@@ -389,7 +389,7 @@
bind(&X::g8, x, 1, 2, 3, 4, 5, 6, 7, 8)();
bind(&X::g8, ref(x), 1, 2, 3, 4, 5, 6, 7, 8)();
- BOOST_TEST( bind(&X::hash, _1)(x) == 23558 );
+ BOOST_TEST( bind<unsigned int>(&X::hash, _1)(x) == 23558 );
}
void member_function_void_test()
@@ -479,7 +479,7 @@
bind(&V::g8, v, 1, 2, 3, 4, 5, 6, 7, 8)();
bind(&V::g8, ref(v), 1, 2, 3, 4, 5, 6, 7, 8)();
- BOOST_TEST( bind(&V::hash, _1)(v) == 23558 );
+ BOOST_TEST( bind<unsigned>(&V::hash, _1)(v) == 23558 );
}
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk