Re: How does libsigc++ accept member functions?
- From: Igor Gorbounov <igor gorbounov gmail com>
- To: Chris Vine <chris cvine freeserve co uk>
- Cc: Daniel Elstner <daniel kitta googlemail com>, GTKMM Lists <gtkmm-list gnome org>
- Subject: Re: How does libsigc++ accept member functions?
- Date: Thu, 04 Jun 2009 20:10:39 +0400
Chris Vine пишет:
On Thu, 04 Jun 2009 16:01:33 +0400
Igor Gorbounov <igorbounov 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 looks like I'll eventually understand it after a very
thorough thinking. Templates here make things look somewhat
spooky...
Igor Gorbounov
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]