Boost C++ Libraries: Ticket #13229: Infinite loop when printing certain values of type boost::multiprecision::mpfr_float. https://svn.boost.org/trac10/ticket/13229 <p> The program below never terminates. The attached patch seems to solve the issue. </p> <p> #include &lt;boost/multiprecision/mpfr.hpp&gt; #include &lt;iostream&gt; </p> <p> int main (void) { </p> <blockquote> <p> using mpfloat = boost::multiprecision::mpfr_float; <em> mpfloat::default_precision (15); mpfloat x = 0.051; </em></p> </blockquote> <blockquote> <p> std::cout.precision (1); std::cout &lt;&lt; std::fixed &lt;&lt; x &lt;&lt; std::endl; return 0; </p> </blockquote> <p> } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13229 Trac 1.4.3 Victor Sunye <victor.sunye@…> Wed, 27 Sep 2017 15:24:05 GMT attachment set https://svn.boost.org/trac10/ticket/13229 https://svn.boost.org/trac10/ticket/13229 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">mpfr.patch</span> </li> </ul> Ticket John Maddock Thu, 10 May 2018 11:00:30 GMT component changed; owner set https://svn.boost.org/trac10/ticket/13229#comment:1 https://svn.boost.org/trac10/ticket/13229#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">multiprecision</span> </li> </ul> Ticket John Maddock Fri, 11 May 2018 18:23:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13229#comment:2 https://svn.boost.org/trac10/ticket/13229#comment:2 <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">fixed</span> </li> </ul> <p> Good catch, fixed in develop. </p> Ticket