diff --git a/include/cinatra/coro_http_server.hpp b/include/cinatra/coro_http_server.hpp index 850dc0df..f6847a98 100644 --- a/include/cinatra/coro_http_server.hpp +++ b/include/cinatra/coro_http_server.hpp @@ -148,14 +148,14 @@ class coro_http_server { if constexpr (is_lazy_v) { std::function(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(std::move(key), std::move(f), std::forward(asps)...); } else { std::function - f = std::bind(handler, owner, std::placeholders::_1, + f = std::bind(handler, &owner, std::placeholders::_1, std::placeholders::_2); set_http_handler(std::move(key), std::move(f), std::forward(asps)...);