-
Notifications
You must be signed in to change notification settings - Fork 648
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 boost 1.66 compatibility #1161
Conversation
…odify() Current boost will delete an object from a multi_index_container if when modifying that object, the functor throws an exception. This breaks the undo infrastructure when it tries to undo the failed change, but the object is missing. To prevent this, we catch the exception before it reaches boost.
In other words, hopefully this makes travis work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backed out changes to market_evaluator to make sure new try/catch handles the divide by zero and it does.
Tested with Boost 1.66.0 on Ubuntu 18.04. Good job.
); | ||
if (exc) | ||
std::rethrow_exception(exc); | ||
FC_ASSERT(ok, "Could not modify object, most likely a index constraint was violated"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an index constraint
PR for #852.
Cherry-picked / rebased from #1126.