Am Freitag, den 05.06.2009, 08:51 +0400 schrieb Igor Gorbounov:
Thanks, Daniel, it was helpfull, though it seems to be impossible to
transfer this
pointer to some outward object, knowing nothing about the class with
member function.
You need to know the function signature. This is not
On Fri, 05 Jun 2009 08:51:38 +0400
Igor Gorbounov igorbou...@topazelectro.ru wrote:
Daniel Elstner пишет:
Am Donnerstag, den 04.06.2009, 16:01 +0400 schrieb Igor Gorbounov:
[...]
As an example, I'm calling a method directly through a PMF here:
Hi, Murray,
I'm trying (in vain) to understand how it works. In my AVR-GCC program
I'd like
to implement some mechanism to use libsigc++ - like callback functions.
The compiler prevents me from transferring things like
Dispatcher::on_settings_button_pressed to a button (self-made, too).
I've
Am Donnerstag, den 04.06.2009, 15:41 +0400 schrieb Igor Gorbounov:
I'm trying (in vain) to understand how it works. In my AVR-GCC program
I'd like
to implement some mechanism to use libsigc++ - like callback functions.
The compiler prevents me from transferring things like
Daniel Elstner пишет:
Am Donnerstag, den 04.06.2009, 15:41 +0400 schrieb Igor Gorbounov:
Because it looks very ugly, I'm eager to understand how did you
bypassed all this stuff using libsigc++?
The term you are looking for is PMF (Pointer to Member Function).
It is this very
Am Donnerstag, den 04.06.2009, 16:01 +0400 schrieb Igor Gorbounov:
The term you are looking for is PMF (Pointer to Member Function).
It is this very pointer to member function that C++ does not
allow me to get.
I meant to say that PMF is the term you want to Google for.
As an
On Thu, 04 Jun 2009 16:01:33 +0400
Igor Gorbounov igorbou...@topazelectro.ru wrote:
Daniel Elstner пишет:
Am Donnerstag, den 04.06.2009, 15:41 +0400 schrieb Igor Gorbounov:
Because it looks very ugly, I'm eager to understand how did you
bypassed all this stuff using libsigc++?
Chris Vine пишет:
On Thu, 04 Jun 2009 16:01:33 +0400
Igor Gorbounov igorbou...@topazelectro.ru wrote:
[...]
T* obj;
void (T::*func)();
Once you have assigned values to obj and func you can call the assigned
method on the assigned object with this:
(obj-*func)();
[...]
Thanks, Chris! It
Daniel Elstner пишет:
Am Donnerstag, den 04.06.2009, 16:01 +0400 schrieb Igor Gorbounov:
[...]
As an example, I'm calling a method directly through a PMF here:
http://github.com/danielkitta/kcio/blob/8edc530dbfe3d998c682da0218263d7c577f5c46/kc-keyboard/controller.cc#L162
Thanks, Daniel,