Boost C++ Libraries: Ticket #13617: Eternal loop when assigning infinity or NaN https://svn.boost.org/trac10/ticket/13617 <p> The following statement gets into an eternal loop in release builds (where NDEBUG is defined): </p> <pre class="wiki">boost::multiprecision::int128_t inf_i(std::numeric_limits&lt;double&gt;::infinity()); </pre><p> This is caught by a BOOST_ASSERT otherwise. Same is true for NaN. </p> <p> Question: should the assignment not simply assign 'infinity' instead (or throw an exception)n in such cases? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13617 Trac 1.4.3 John Maddock Tue, 31 Jul 2018 17:30:46 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13617#comment:1 https://svn.boost.org/trac10/ticket/13617#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">obsolete</span> </li> </ul> <p> Moved to: <a class="ext-link" href="https://github.com/boostorg/multiprecision/issues/58"><span class="icon">​</span>https://github.com/boostorg/multiprecision/issues/58</a> </p> Ticket