|
Boost Users : |
From: Stephen Torri (storri_at_[hidden])
Date: 2006-06-30 14:08:52
On Fri, 2006-06-30 at 11:04 -0700, Cory Nelson wrote:
> > What I am getting back from the g++ compiler is the following error message:
> >
> > error: cannot convert `boost::function<void ()(), std::allocator<void> >' to `void (*)()' for argument `1' to `void glutDisplayFunc(void (*)())'
> >
> > Any ideas where I am going wrong?
>
> You are passing a function object to a C function which expects a
> function pointer. A boost::function can not be converted into a
> function pointer.
I appreciate the response pointing out the error. It would be nice to
have a solution and not just a critique.
Stephen
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