Boost logo

Boost Users :

From: Boris (boriss_at_[hidden])
Date: 2008-01-15 14:47:23


On Tue, 15 Jan 2008 19:30:00 +0200, raimar wagner
<raimar.wagner_at_[hidden]> wrote:

> 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&)

This reminds me of bug #1076 - see
http://svn.boost.org/trac/boost/ticket/1076 (although that bug was
reported for Visual Studio).

Boris


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