Jiang Tao
Jiang Tao
examples/http/simple_proxy/main.cc ```cpp std::shared_ptr r(new evpp::httpc::GetRequest(loop, proxy_url, evpp::Duration(3.0))); auto f = [cb, ctx, r](const std::shared_ptr& response) { ctx->set_response_http_code(response->http_code()); std::string rc = response->body().ToString(); cb(rc); }; r->Execute(f); ``` 将r放入捕获列表之后,r的生命周期和Request对象的中的handle一样. Request的shared_ptr就不能正常的析构
你好 我看过你的insert函数,存在一点问题,下面是我的测试代码 ``` cpp namespace JJ { #include using namespace std; class TestItem { public: TestItem() { ++count; cout