You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding -DBOOST_ASIO_NO_DEPRECATED to my project (we are migrating from old versions), our build fails. Newer ASIO versions deprecate io_service (use io_context), post is a now a free function, a few API changes (e.g. expires_after), etc.
/usr/include/pplx/threadpool.h:75:18: error: ‘io_service’ in namespace ‘boost::asio’ does not name a type; did you mean ‘has_service’?
/usr/include/pplx/threadpool.h: In member function ‘void crossplat::threadpool::schedule(T)’:
/usr/include/pplx/threadpool.h:72:9: error: there are no arguments to ‘service’ that depend on a template parameter, so a declaration of ‘service’ must be available [-fpermissive]
/usr/include/pplx/threadpool.h:78:38: error: class ‘crossplat::threadpool’ does not have any field named ‘m_service’
This specific error would need changes like the ones below but I wonder if there are other parts (exposed to library clients) that may need change and other implications. Thoughts?
Thanks,
R.
Hi all,
When adding -DBOOST_ASIO_NO_DEPRECATED to my project (we are migrating from old versions), our build fails. Newer ASIO versions deprecate io_service (use io_context), post is a now a free function, a few API changes (e.g. expires_after), etc.
This specific error would need changes like the ones below but I wonder if there are other parts (exposed to library clients) that may need change and other implications. Thoughts?
Thanks,
R.
The text was updated successfully, but these errors were encountered: