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://listarchives.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.