How can I store a boost::bind object as a class member?

前端 未结 4 1980
甜味超标
甜味超标 2020-12-21 00:45

I\'m writing an application that uses boost::asio. Asio\'s async_receive (or async_read) is invariably shown using a boost::bind

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-21 01:19

    I guess you are looking for boost function.
    You can assign the result of your bind expression to a boost::function object as long as the signature is correct.

提交回复
热议问题