Re: How does libsigc++ accept member functions?



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]