$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2007-06-06 20:31:02
On Jun 6, 2007, at 8:46 AM, Boris wrote:
> void Hello() { }
> boost::signal<void ()> sig;
> sig.connect(&Hello); 		// OK
> sig.disconnect(&Hello); 	// Error
>
> Can anyone tell me how I disconnect the callback function Hello? I  
> can see
> in the documentation that I can call disconnect with a group_type  
> and with
> a slot_type but not with a slot_function_type. I'm surprised to run  
> into
> such a problem as from the point of view of a library user it can't  
> get
> much easier than that?
Which compiler are you using? Signals should support this syntax, but  
some compilers can't handle the code for it.
        - Doug