|
Boost Users : |
Subject: Re: [Boost-users] [asio] Correct handler signature for io_service::post/dispatch
From: Igor R (boost.lists_at_[hidden])
Date: 2012-05-20 12:01:40
>> io_service::post() accepts nullary functors. So if your handler accept
>> parameters, I guess you bind them at when posting the handler, don't
>> you.
>
>
> Yes, this is the sort of thing that I'm doing and that I find to be working
> OK.
>
> Â ios.post(boost::bind(&MyClass::Handler,ptr_to_my_class,"astring"));
>
> So, this is OK?
Yes, of course.
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