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

Turning assertions into exceptions #2674

Merged
merged 1 commit into from Jun 6, 2017
Merged

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Jun 2, 2017

  • flyby: refactor future_serialization_save to reduce code duplication

HPX_ASSERT(false);
HPX_THROW_EXCEPTION(invalid_status,
"serialize_future_load",
"attempting to deserialize a future with an invalid state");
Copy link
Member

Choose a reason for hiding this comment

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

I think this should read "unknown state" as ´future_state::invalid` seems to be just fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, will change.

HPX_ASSERT(false);
HPX_THROW_EXCEPTION(invalid_status,
"serialize_future_load",
"attempting to deserialize a future with an invalid state");
Copy link
Member

Choose a reason for hiding this comment

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

same as above

- flyby: refactor future_serialization_save to reduce code duplication
@hkaiser hkaiser force-pushed the fixing_future_serialization branch from 19972e8 to 33ba6b1 Compare June 6, 2017 01:57
@hkaiser hkaiser merged commit 5e88a63 into master Jun 6, 2017
@hkaiser hkaiser deleted the fixing_future_serialization branch June 6, 2017 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants