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

Eternal loop when assigning infinity or NaN #58

Closed
jzmaddock opened this issue Jul 31, 2018 · 0 comments
Closed

Eternal loop when assigning infinity or NaN #58

jzmaddock opened this issue Jul 31, 2018 · 0 comments

Comments

@jzmaddock
Copy link
Collaborator

The following statement gets into an eternal loop in release builds (where NDEBUG is defined):

boost::multiprecision::int128_t inf_i(std::numeric_limits<double>::infinity());

This is caught by a BOOST_ASSERT otherwise. Same is true for NaN.

Question: should the assignment not simply assign 'infinity' instead (or throw an exception)n in such cases?

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

No branches or pull requests

1 participant