boost signals, boost bind, visit_each + gcc 4.1 = broken ?

All,
I encountered a problem using boost signals, with gcc 4.1.1 although
all is fine using gcc 3.4.4. I am using boost 1.33.1.
I get an error which terminates with:
/usr/include/boost/bind.hpp: In function 'void boost::visit_each(V&,
const boost::_bi::value<T>&, int) [with V =
boost::signals::detail::bound_objects_visitor, T = AlignmentWidget*]':
/usr/include/boost/bind.hpp:239: instantiated from 'void
boost::_bi::list1<A1>::accept(V&) const [with V =
boost::signals::detail::bound_objects_visitor, A1 =
boost::_bi::value

Koen Deforche wrote:
All,
I encountered a problem using boost signals, with gcc 4.1.1 although all is fine using gcc 3.4.4. I am using boost 1.33.1.
I get an error which terminates with:
/usr/include/boost/bind.hpp: In function 'void boost::visit_each(V&,
[...] The current version of bind.hpp contains several visit_each-related fixes. Unfortunately, I can't point you to a drop-in replacement of bind.hpp since these fixes have been interleaved with other work. But the following patches may be of interest to you: http://boost.cvs.sourceforge.net/boost/boost/boost/bind.hpp?r1=1.53&r2=1.54 http://boost.cvs.sourceforge.net/boost/boost/boost/bind.hpp?r1=1.55&r2=1.56 You can also try upgrading to the 1.34 RC version, available from http://engineering.meta-comm.com/boost.aspx
participants (2)
-
Koen Deforche
-
Peter Dimov