
On Fri, 2006-06-30 at 14:40 -0400, Douglas Gregor wrote:
On Jun 30, 2006, at 12:28 PM, Stephen Torri wrote:
boost::function
disp_func = boost::bind ( &MyMain::display, &m_ref ); glutDisplayFunc ( disp_func ); Unfortunately, disp_func needs to be a function pointer. I wrote up a short article on the Wiki about using boost::function with C libraries. It may help you solve this problem:
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl? Generalizing_C-Style_Callbacks
Doug
Given your example I would need to create a class something like the
following:
class A {
private:
typedef boost::function