|
Boost Users : |
From: Boris (boriss_at_[hidden])
Date: 2007-06-06 11:10:14
On Wed, 06 Jun 2007 23:38:36 +0900, David Klein <dave_chp_at_[hidden]> wrote:
> Boris wrote:
>> void Hello() { }
>> boost::signal<void ()> sig;
>> sig.connect(&Hello); // OK
>> sig.disconnect(&Hello); // Error
> [...]http://www.boost.org/doc/html/signals/tutorial.html#id1627590
According to http://www.boost.org/doc/html/signals/tutorial.html#id1627841
the code above should work? However I can't compile it with VC++ 2005 SP1.
Anyone with the same problem? The error message I get is:
error C2664:
'boost::signal0<R,Combiner,Group,GroupCompare,SlotFunction>::disconnect' :
cannot convert parameter 1 from 'void (__cdecl *)(void)' to 'const int &'
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