File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
SilKit/source/core/vasio/io/impl Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ void AsioGenericRawByteStream::HandleShutdownOrError()
283283
284284 _shutdownPosted = true ;
285285
286- _asioIoContext-> post ([this ] { _listener->OnShutdown (*this ); });
286+ asio:: post (*_asioIoContext, [this ] { _listener->OnShutdown (*this ); });
287287 }
288288 }
289289}
Original file line number Diff line number Diff line change @@ -164,14 +164,14 @@ void AsioIoContext::Run()
164164void AsioIoContext::Post (std::function<void ()> function)
165165{
166166 SILKIT_TRACE_METHOD_ (_logger, " (...)" );
167- _asioIoContext-> post (std::move (function));
167+ asio:: post (*_asioIoContext, std::move (function));
168168}
169169
170170
171171void AsioIoContext::Dispatch (std::function<void ()> function)
172172{
173173 SILKIT_TRACE_METHOD_ (_logger, " (...)" );
174- _asioIoContext-> dispatch (std::move (function));
174+ asio:: dispatch (*_asioIoContext, std::move (function));
175175}
176176
177177
Original file line number Diff line number Diff line change 11# [ 5.0.2] - UNRELEASED
22
3- > This changelog entry is still empty.
3+ ## Fixed
4+
5+ - ` asio ` : replaced the deprecated (and now removed) methods ` asio::io_context::post ` and ` asio::io_context::dispatch `
6+ with the suggested alternatives ` asio::post ` and ` asio::dispatch `
You can’t perform that action at this time.
0 commit comments