-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
This pull request allows people to select boost::future over std::future #218
base: master
Are you sure you want to change the base?
Conversation
The exception handling wasn't working right. boost::promise doesn't handle std::exception_ptr well. |
I also added support for passing in an error_code * to use_future_t so that you can retrieve an error without throwing an exception on a call to get() or co_await |
Though it looks like they would fail without my merge
This works as well as I can make it. The integration tests are now failing because of the |
I needed continuation which std::future doesn't have.
simply
#define ASIO_DISABLE_STD_FUTURE
and it ill fail over to boost::future|promise|packaged_task unless ASIO_DISABLE_BOOST_FUTURE is also defined.