Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::bind and Motif
From: Sven Bauhan (sven.bauhan_at_[hidden])
Date: 2012-05-02 11:57:58


>
> Bind creates a function object, while XtAppAddTimeOut expects a
> function pointer, as you mentioned.
> You can define a static member function that matches
> XtTimerCallbackProc signature, and pass it without bind.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Thanks, that was the way i did it before.
But from a static member function i have no access to the object
attributes, so i had to make it a singleton class
that was what i wanted to prevent by using bind.


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