|
Boost Users : |
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2006-06-30 15:45:29
Douglas Gregor wrote:
> 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
Once upon a time I mentioned making a solution...
http://thread.gmane.org/gmane.comp.lib.boost.devel/124435/focus=124449
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
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