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

Fix build with Boost 1.87 that removes deprecated asio methods #387

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

comio
Copy link

@comio comio commented Dec 16, 2024

Boost 1.87.0 removes the io_service class (replaced by io_context) and other deprecated methods.
This patch add the minimal fix to build on top Boost 1.87.0.

ciao

@sc0w
Copy link
Member

sc0w commented Dec 16, 2024

there is a way to check the boost version and make the code compatible with both versions?

@comio
Copy link
Author

comio commented Dec 17, 2024

there is a way to check the boost version and make the code compatible with both versions?

Maybe. The io_service is a backwards compatibility typedef since 1.66.0 (2017) as well as the strand::{post,dispatch,...} are deprecated since the same release.

@sc0w
Copy link
Member

sc0w commented Dec 17, 2024

ok, seems the build is ok with 1.83 and this PR

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