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

Fix boost 1.66 compatibility #1161

Merged
merged 6 commits into from
Jul 30, 2018
Merged

Fix boost 1.66 compatibility #1161

merged 6 commits into from
Jul 30, 2018

Conversation

abitmore
Copy link
Member

PR for #852.

Cherry-picked / rebased from #1126.

nathanielhourt and others added 5 commits July 21, 2018 13:33
Two tests  were  failing due to a divide by zero bug. Add a check to
bound out the divide by zero.
…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
Copy link
Contributor

@jmjatlanta jmjatlanta left a 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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an index constraint

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

Successfully merging this pull request may close these issues.

3 participants