Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/qicosmos/cinatra
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Feb 10, 2024
2 parents 1470c14 + 2bd90d0 commit 3fa0f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cinatra/coro_http_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ class coro_http_server {
if constexpr (is_lazy_v<return_type>) {
std::function<async_simple::coro::Lazy<void>(coro_http_request & req,
coro_http_response & resp)>
f = std::bind(handler, owner, std::placeholders::_1,
f = std::bind(handler, &owner, std::placeholders::_1,
std::placeholders::_2);
set_http_handler<method...>(std::move(key), std::move(f),
std::forward<Aspects>(asps)...);
}
else {
std::function<void(coro_http_request & req, coro_http_response & resp)>
f = std::bind(handler, owner, std::placeholders::_1,
f = std::bind(handler, &owner, std::placeholders::_1,
std::placeholders::_2);
set_http_handler<method...>(std::move(key), std::move(f),
std::forward<Aspects>(asps)...);
Expand Down

0 comments on commit 3fa0f9c

Please sign in to comment.