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

class asio::io_context::work’ has no member named ‘reset’ #188

Closed
yanzixiang opened this issue Feb 17, 2023 · 3 comments
Closed

class asio::io_context::work’ has no member named ‘reset’ #188

yanzixiang opened this issue Feb 17, 2023 · 3 comments

Comments

@yanzixiang
Copy link

i installed libasio-dev on ubuntu,
try the standaloneasio_nonowner_iocontext.cpp for example,
but get this error.

class asio::io_context::work’ has no member named ‘reset’
work->reset();
\cli\detail\genericasioscheduler.h 74

@daniele77
Copy link
Owner

Please, check the version of asio library you installed.
Thanks.

@yanzixiang
Copy link
Author

Please, check the version of asio library you installed. Thanks.

libasio-dev/10.1,now 1:1.12.2-1 all [已安装]
cross-platform C++ library for network programming

the doc here
https://think-async.com/Asio/asio-1.12.2/doc/asio/reference/io_context.html
https://think-async.com/Asio/asio-1.12.2/doc/asio/reference/io_context/reset.html

so which version should be used ?

@daniele77
Copy link
Owner

The asio version you're using is pretty old. However, I fixed cli so that it works with old asio versions, as well.
Checkout last cli commit.

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