Skip to content

io_service -> io_context - #273

Open
nim65s wants to merge 1 commit into
KumarRobotics:ros2from
nim65s:asio136
Open

nim65s wants to merge 1 commit into
KumarRobotics:ros2from
nim65s:asio136

Conversation

@nim65s

@nim65s nim65s commented Mar 22, 2026

Copy link
Copy Markdown

Hi,

This fix build for asio 1.36.

io_service has been deprecated for at least 9 years (ref. blame https://github.com/boostorg/asio/blame/995eeab56906ab0a1f614602aa0dee9ee88bf8cb/include/boost/asio/io_service.hpp), and removed in boostorg/asio@ec0908c

Fix build for asio 1.36.

`io_service` has been deprecated for at least 9 years (ref. blame https://github.com/boostorg/asio/blame/995eeab56906ab0a1f614602aa0dee9ee88bf8cb/include/boost/asio/io_service.hpp),
and removed in boostorg/asio@ec0908c
@idesign0

Copy link
Copy Markdown

Confirming this on macOS with current standalone asio (Homebrew asio 1.36): we carry the same change (io_context, asio::post, and resolver.resolve(host, port) with results_type) to build ublox_gps, and it builds and is used in our ROS 2 Jazzy macOS distribution (CI run 44117826051). Without it, io_service and resolver::query are gone and the build fails. It would be great to see it merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants