Re: How does libsigc++ accept member functions?



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]