Boost logo

Boost Users :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-07-10 22:26:35


> I'm having a problem (which was really hard to decipher) when connecting a
function
> object to a signal. Thing is I default construct (no argument) a function
object and
> connect it to the signal (using boost::ref), then at a later point in time
I actually assign
> something to the function object (using boost::bind). But firing the
signal after this
> causes a bad_function_call to be thrown.
>
> On the other hand; if I construct the function object with some dummy
object before
> connecting it to the signal, and later do the assignment, the signal does
its thing. If
> someone could enlighten me as to whats going on here, I'd be grateful ..
: )

That's _very_ odd. I'll see if I can duplicate it, because it may very well
be a bug in Signals.

    Doug


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