Boost logo

Boost Users :

From: raimar wagner (raimar.wagner_at_[hidden])
Date: 2008-01-15 12:30:00


Hello!
I'm trying to use the boost signals library to implement a callback
system, but my first test-application (see boost_test_app.cpp in
attachment) won't compile. The connect method works as expected, but
if I'm trying to disconnect my slot (in line 28: "
mySignal.disconnect(slot);") a compiler error message appears.

The error message:
/path_to_boost/include/boost-1
_34_1/boost/boost/function_equal.hpp:17: error: no match for
'operator==' in 'f == g'
/path_to_boost/include/boost-1_34_1/boost/function/function_base.hpp:577:
note: candidates are: bool boost::operator==(const
boost::function_base&, boost::detail::function::useless_clear_type*)
/path_to_boost/include/boost-1_34_1/boost/function/function_base.hpp:589:
note: bool
boost::operator==(boost::detail::function::useless_clear_type*, const
boost::function_base&)

My compile command:
g++ -I/path_to_boost/include/boost-1_34_1/ -g -o boost_test_app
boost_test_app.cpp -L/path_to_boost/lib -lboost_signals-gcc41

I'm using boost 1.34.1 with g++ (GCC) 4.1.0 (SUSE Linux) as compiler.

Best regards
Raimar




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net