Skip to content

Commit

Permalink
fix (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Feb 10, 2024
1 parent 259b9f9 commit 2bd90d0
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 2bd90d0

Please sign in to comment.