[sigc] Overloaded Member Methods as Slots
- From: "Wesley Smith" <wesley hoke gmail com>
- To: libsigc-list gnome org
- Subject: [sigc] Overloaded Member Methods as Slots
- Date: Tue, 28 Feb 2006 16:46:38 -0800
Hi,
I'm trying to connect a signal with a slot. Here's the pseudo-code:
slider->action.connect( sigc::mem_fun(myObject, &myObjectClass::myMethod) );
So in myObjectClass there are overloaded method of myMethod. This
results in a compiler error overloaded mem_fun(myObjectClass*&,
<unknown type>) is ambiguous. This is with GCC 4.0.
Basically, if we have a class with with several methods of the same
name but with different arguments, how can we specify which of the
overloaded functions get hooked in in order to disambiguate.
thanks,
wes
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]