Opened 4 years ago
Closed 4 years ago
#13617 closed Bugs (obsolete)
Eternal loop when assigning infinity or NaN
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | None |
Version: | Boost 1.67.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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?
Note:
See TracTickets
for help on using tickets.
Moved to: https://github.com/boostorg/multiprecision/issues/58