asio icon indicating copy to clipboard operation
asio copied to clipboard

error: ‘io_service’ in namespace ‘boost::asio’ does not name a type

Open guoyunhe opened this issue 6 months ago • 7 comments

src/input_common/drivers/udp_client.cpp:116:18: error: ‘io_service’ in namespace ‘boost::asio’ does not name a type; did you mean ‘use_service’?
[  270s]   116 |     boost::asio::io_service io_service;
[  270s]       |                  ^~~~~~~~~~

Boost version 1.88

Repo is at https://git.suyu.dev/suyu/suyu

guoyunhe avatar Aug 03 '25 08:08 guoyunhe

This is not an asio issue. io_service has been renamed io_context years ago and suyu is looking for boost 1.79. You need to open an issue there.

klemens-morgenstern avatar Aug 03 '25 14:08 klemens-morgenstern

This is not an asio issue. io_service has been renamed io_context years ago and suyu is looking for boost 1.79. You need to open an issue there.

Is here any changelog for this change?

guoyunhe avatar Aug 04 '25 04:08 guoyunhe

https://github.com/chriskohlhoff/asio/blob/master/asio/src/doc/history.qbk https://www.boost.org/releases/1.87.0/ https://www.boost.org/doc/libs/1_87_0/doc/html/boost_asio/history.html

klemens-morgenstern avatar Aug 04 '25 06:08 klemens-morgenstern

https://github.com/chriskohlhoff/asio/blob/master/asio/src/doc/history.qbk https://www.boost.org/releases/1.87.0/ https://www.boost.org/doc/libs/1_87_0/doc/html/boost_asio/history.html

I have searched through all these links. There isn't a line saying io_service has been renamed io_context...

guoyunhe avatar Aug 04 '25 08:08 guoyunhe

I guess it's part of the P0443 implementation from asio 1.17, at which point io_service became an alias for io_context. And this alias was later on removed.

klemens-morgenstern avatar Aug 04 '25 09:08 klemens-morgenstern

It's in the Asio 1.12.0 / Boost 1.66 changes: https://www.boost.org/doc/libs/1_87_0/doc/html/boost_asio/history.html#boost_asio.history.asio_1_12_0___boost_1_66

Implemented interface changes to reflect the Networking TS (N4656). See the list of new interfaces and, where applicable, the corresponding old interfaces that have been superseded.

MarcelRaad avatar Aug 04 '25 13:08 MarcelRaad

https://github.com/chriskohlhoff/asio/blob/master/asio/src/doc/history.qbk https://www.boost.org/releases/1.87.0/ https://www.boost.org/doc/libs/1_87_0/doc/html/boost_asio/history.html

I have searched through all these links. There isn't a line saying io_service has been renamed io_context...

Can take a look at my PR?

aryanrahar avatar Sep 12 '25 10:09 aryanrahar