Re: How does libsigc++ accept member functions?
- From: Daniel Elstner <daniel kitta googlemail com>
- To: Igor Gorbounov <igorbounov topazelectro ru>
- Cc: Murray Cumming <murrayc murrayc com>, GTKMM Lists <gtkmm-list gnome org>
- Subject: Re: How does libsigc++ accept member functions?
- Date: Thu, 04 Jun 2009 13:47:56 +0200
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
> &Dispatcher::on_settings_button_pressed to a button (self-made, too).
> I've managed to do this trick only by use of a standalone function:
[...]
> 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).
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]