Post callbacks to a task queue using boost::bind
问题 Suppose I have a function called subscribe() that takes a callback handler, which will be called when the event is triggered. Now, I have another version, called subscribe2() . Everything is the same except that, when triggered, it needs to post it to an event queue. It is implemented using the original subscribe() , with a helper funciton called helper() . All it does is to bind the original handler and whatever additional arguments into a functor, and call postToEventQueue() . Now, I wonder