diff options
| author | Mistivia <i@mistivia.com> | 2025-01-15 23:43:31 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-01-15 23:43:31 +0800 |
| commit | 4fa1f4f1ab223bfca23eda8a68c091ed871ab35f (patch) | |
| tree | 2bfd828a575dc85dc72eb912991e739ced108090 /lib/crow/include | |
| parent | 4da382953c830a61ae24ccbe95c4241db8788269 (diff) | |
fix draft bug
Diffstat (limited to 'lib/crow/include')
| -rw-r--r-- | lib/crow/include/crow/socket_adaptors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crow/include/crow/socket_adaptors.h b/lib/crow/include/crow/socket_adaptors.h index 9d00356..18da884 100644 --- a/lib/crow/include/crow/socket_adaptors.h +++ b/lib/crow/include/crow/socket_adaptors.h @@ -19,7 +19,7 @@ namespace crow boost::asio::io_service& get_io_service() { - return *socket_.get_executor().target<boost::asio::io_context>(); + return const_cast<boost::asio::io_service&>(*socket_.get_executor().target<boost::asio::io_context>()); } tcp::socket& raw_socket() |
