diff options
author | ipknHama <ipknhama@gmail.com> | 2014-08-15 11:06:00 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-08-15 11:06:00 +0900 |
commit | c5cbb3ff54119855e63dff9666fd490a92f0db76 (patch) | |
tree | 8738295afc8e3effd3a631731489ebd0cfdd8832 /include/http_server.h | |
parent | f91af402f7bb2a3e3cae724512181cbf92d5a918 (diff) | |
download | crow-c5cbb3ff54119855e63dff9666fd490a92f0db76.tar.gz crow-c5cbb3ff54119855e63dff9666fd490a92f0db76.zip |
remove shared_ptr for performance
Diffstat (limited to 'include/http_server.h')
-rw-r--r-- | include/http_server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/http_server.h b/include/http_server.h index 6a3c109..228cc8c 100644 --- a/include/http_server.h +++ b/include/http_server.h @@ -61,7 +61,7 @@ namespace crow { if (!ec) { - auto p = std::make_shared<Connection<Handler>>(std::move(socket_), handler_, server_name_); + auto p = new Connection<Handler>(std::move(socket_), handler_, server_name_); p->start(); } do_accept(); |