
13 Apr
2011
13 Apr
'11
11:33 p.m.
I'd like to implement an event-handling scheme that supports member functions. For example, I would have a class that accepts a function pointer, stores it, and calls that function when some event occurs. I'd like to be able to store a pointer to a member function with boost::bind():
Rather than re-inventing the wheel, you might try boost::signal or fastdelegates: http://www.codeproject.com/KB/cpp/fd.aspx http://www.codeproject.com/KB/cpp/FastDelegate.aspx -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.