$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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