[Boost-bugs] [Boost C++ Libraries] #8275: conversion_traits::super/subtype incorrect for UDT's

Subject: [Boost-bugs] [Boost C++ Libraries] #8275: conversion_traits::super/subtype incorrect for UDT's
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-11 16:54:45


#8275: conversion_traits::super/subtype incorrect for UDT's
-------------------------------------+--------------------------------------
 Reporter: johnmaddock | Owner: dgregor
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: numeric
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 The following static assertion fails:

 {{{
 #include <boost/numeric/conversion/conversion_traits.hpp>
 #include <boost/multiprecision/cpp_dec_float.hpp>

    using namespace boost::multiprecision;
 BOOST_STATIC_ASSERT(boost::numeric::convdetail::get_is_subranged<cpp_dec_float_50,
 cpp_dec_float_100>::type::value);

 }}}

 Which causes all sorts of other failures in clients of this class - it
 looks like UDT conversions are treated as always non-narrowing (?) where
 as use of numeric_limits would quickly reveal otherwise.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8275>
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:12 UTC