Boost logo

Boost Users :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2006-06-30 14:40:52


On Jun 30, 2006, at 12:28 PM, Stephen Torri wrote:
> boost::function<void()> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net