In the docs for signals, an example is given for disconnecting slots:
void foo();
void bar();
signal sig;
sig.connect(&foo);
sig.connect(&bar);
// disconnects foo, but not bar
sig.disconnect(&foo);
When I try this with MSV 7.1, I get an compiler error:
error C2664:
'boost::signal0::disconnect'
:
cannot convert parameter 1 from 'void (__cdecl *)(void)' to 'const
boost::signal0::group_type
&'
with
[
R=boost::detail::function_traits_helper::type>::result_type,
Combiner=boost::last_value<void>,
Group=int,
GroupCompare=std::less<int>,
SlotFunction=boost::function
]
and
[
R=boost::detail::function_traits_helper::type>::result_type,
Combiner=boost::last_value<void>,
Group=int,
GroupCompare=std::less<int>,
SlotFunction=boost::function
]
My question is, are the docs incorrect, or am I doing something wrong?
Regards,
Joes.
This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html