Skip to content

Commit 3fa0f9c

Browse files
committed
Merge branch 'master' of https://github.com/qicosmos/cinatra
2 parents 1470c14 + 2bd90d0 commit 3fa0f9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cinatra/coro_http_server.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ class coro_http_server {
148148
if constexpr (is_lazy_v<return_type>) {
149149
std::function<async_simple::coro::Lazy<void>(coro_http_request & req,
150150
coro_http_response & resp)>
151-
f = std::bind(handler, owner, std::placeholders::_1,
151+
f = std::bind(handler, &owner, std::placeholders::_1,
152152
std::placeholders::_2);
153153
set_http_handler<method...>(std::move(key), std::move(f),
154154
std::forward<Aspects>(asps)...);
155155
}
156156
else {
157157
std::function<void(coro_http_request & req, coro_http_response & resp)>
158-
f = std::bind(handler, owner, std::placeholders::_1,
158+
f = std::bind(handler, &owner, std::placeholders::_1,
159159
std::placeholders::_2);
160160
set_http_handler<method...>(std::move(key), std::move(f),
161161
std::forward<Aspects>(asps)...);

0 commit comments

Comments
 (0)