Blog Posts

001-在lambda中使用unique_ptr的注意事项

起因是在解析jsonrpc数据时,为了简化函数设计,使用了`asio::thread_pool`,用lambda表达式来处理各任务,但在传递unique_ptr时遇到了问题,这篇文章就是记录下解决这个问题的过程。