Subject: [Boost-bugs] [Boost C++ Libraries] #13229: Infinite loop when printing certain values of type boost::multiprecision::mpfr_float.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-09-27 15:23:25
#13229: Infinite loop when printing certain values of type
boost::multiprecision::mpfr_float.
--------------------------------------------+---------------------
Reporter: Victor Sunye <victor.sunye@â¦> | Owner: (none)
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.63.0 | Severity: Problem
Keywords: |
--------------------------------------------+---------------------
The program below never terminates. The attached patch seems to solve the
issue.
#include <boost/multiprecision/mpfr.hpp>
#include <iostream>
int
main (void)
{
using mpfloat = boost::multiprecision::mpfr_float;
// mpfloat::default_precision (15);
mpfloat x = 0.051;
std::cout.precision (1);
std::cout << std::fixed << x << std::endl;
return 0;
}
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13229> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-09-27 15:30:22 UTC