20 May
2012
20 May
'12
4:01 p.m.
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.