[Boost-bugs] [Boost C++ Libraries] #12720: Implement is_floating_point and is_arithmetic for float128

Subject: [Boost-bugs] [Boost C++ Libraries] #12720: Implement is_floating_point and is_arithmetic for float128
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-02 15:21:00


#12720: Implement is_floating_point and is_arithmetic for float128
----------------------------------------+----------------------------
 Reporter: Charles Karney <charles@…> | Owner: johnmaddock
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
----------------------------------------+----------------------------
 The following program

 {{{
 #include <iostream>
 #include <random>
 #include <boost/multiprecision/float128.hpp>

 int main() {
   unsigned s = std::random_device()();
   std::mt19937 g(s);
   std::uniform_real_distribution<boost::multiprecision::float128> dis;
   std::cout << dis(g) << "\n";
 }
 }}}

 fails to compile with g++ 6.3.1 due to this static assertion failure

 {{{
 /usr/include/c++/6.3.1/bits/random.h:160:2: error: static assertion
 failed: template argument not a floating point type
   static_assert(std::is_floating_point<_DInputType>::value,
   ^~~~~~~~~~~~~
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12720>
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-02-16 18:50:20 UTC