Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_io_service deprecated and then removed in boost 1.70 #23

Open
adrianboston opened this issue Apr 6, 2020 · 3 comments
Open

get_io_service deprecated and then removed in boost 1.70 #23

adrianboston opened this issue Apr 6, 2020 · 3 comments

Comments

@adrianboston
Copy link

get_io_service deprecated and then removed in boost 1.70

rstudio/rstudio#4636

The previously deprecated get_io_context and get_io_service member functions have now been removed.
The previously deprecated service template parameters, and the corresponding classes, have now been removed.
Added a new async_result form with an initiate static member function.

Looks like .get_executor().context() should be used instead, and most usages of io_service should become io_context.

https://stackoverflow.com/questions/56327920/how-to-get-the-io-context-from-a-strand-in-boost-1-68

@adrianboston
Copy link
Author

The following appears to fix issues. Works w boost 1.72

Replace io_service with io_context

Replace calls to get_io_service() with get_io_context()

The following works with the changes.
async_connect
async_query

Cannot get the following to compile. Something with the placeholders it seems
async_store_result

@rfog
Copy link

rfog commented Aug 3, 2020

serial_port does not contain a get_io_context() using io_context instead of io_service.

This has beautifully broken my current project. Now I need to figure how to sort this or go back to previous boost version.

@adrianboston
Copy link
Author

adrianboston commented Aug 4, 2020

Are you claiming that serial_port does not conforms to the current ( 1.73 ) boost asio and from versions roughly 2 yrs ago according to the following issue:

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

No branches or pull requests

2 participants