From 2bd90d0b36e46478efe811530296682e2303dcf3 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Sat, 10 Feb 2024 11:27:22 +0800 Subject: [PATCH] fix (#524) --- include/cinatra/coro_http_server.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)...);