-
Notifications
You must be signed in to change notification settings - Fork 353
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
[BUG] Incorrect exception type when using Boost futures #534
Comments
What's your boost version? The minimum version requirement for Boost is 1.55.0. I'm not sure if this is a duplicated issue with this one. Regards |
Hi, @sewenew. My boost version is 1.74.0, so it should work. In addition, the issue you mentioned is about compile-time error. The problem reported here occurs at runtime. |
Thanks for pointing it out! I'll take a look into it. Regards |
After some research, I found the problem lies on When something bad happens, e.g. failed to connect to Redis, we call So far, I do not find any cheaper solution to fix it. If you have any idea, feel free to let me know. Regards |
The following program reports an exception of unknown type when
REDIS_PLUS_PLUS_ASYNC_FUTURE
is set toboost
and there is no running Redis server:The output is as follows:
Without
REDIS_PLUS_PLUS_ASYNC_FUTURE
, the output looks as expected:Environment:
Additional context
The problem might be related to using
std::exception_ptr
whereboost::exception_ptr
is needed.The text was updated successfully, but these errors were encountered: