|
Boost : |
From: Angus Leeming (a.leeming_at_[hidden])
Date: 2002-06-20 04:52:30
Hello,
I'm using boost BOOST_VERSION 102900 on an Alpha machine and find
that I've had to make a trivial change to the sources to remove countless
tedious compiler warnings. The following patch fixes things because
c-assert expects an int (size 4) but is being passed a pointer (size 8).
Best regards,
Angus
Index: boost/boost/signals/connection.hpp
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/boost/boost/signals/connection.hpp,v
retrieving revision 1.4
diff -u -p -r1.4 connection.hpp
--- boost/boost/signals/connection.hpp 18 Jun 2002 15:39:26 -0000 1.4
+++ boost/boost/signals/connection.hpp 18 Jun 2002 19:54:18 -0000
@@ -151,7 +151,7 @@ namespace boost {
inline void
connection::add_bound_object(const BOOST_SIGNALS_NAMESPACE::detail::bound_object& b)
{
- assert(con.get());
+ assert(con.get() != 0);
con->bound_objects.push_back(b);
}
Index: boost/libs/signals/src/connection.cpp
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/boost/libs/signals/src/connection.cpp,v
retrieving revision 1.3
diff -u -p -r1.3 connection.cpp
--- boost/libs/signals/src/connection.cpp 18 Jun 2002 15:39:27 -0000
1.3
+++ boost/libs/signals/src/connection.cpp 18 Jun 2002 19:54:18 -0000
@@ -39,7 +39,7 @@ namespace boost {
typedef std::list<BOOST_SIGNALS_NAMESPACE::detail::bound_object>::iterator iterator;
for (iterator i = local_con->bound_objects.begin();
i != local_con->bound_objects.end(); ++i) {
- assert(i->disconnect);
+ assert(i->disconnect != 0);
i->disconnect(i->obj, i->data);
}
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk