Skip to content

Commit

Permalink
Fixing build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Jan 18, 2025
1 parent b34e9d2 commit 8aa13de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/restc-cpp/boost_compatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ void boost_dispatch(IOService& io_service, Handler&& handler) {
);
}
#else
io_service.dispatch(std::forward<Handler>(handler));
if constexpr (std::is_pointer_v<IOService>) {
io_service->dispatch(std::forward<Handler>(handler));
} else {
io_service.dispatch(std::forward<Handler>(handler));
}
#endif
}

Expand Down

0 comments on commit 8aa13de

Please sign in to comment.