Subject: [Boost-bugs] [Boost C++ Libraries] #8996: Boost.Multiprecision - implicit conversion of reminder to divisor type.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-14 20:25:13
#8996: Boost.Multiprecision - implicit conversion of reminder to divisor type.
------------------------------+----------------------------
Reporter: anonymous | Owner: johnmaddock
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost 1.54.0 | Severity: Cosmetic
Keywords: |
------------------------------+----------------------------
{{{
#include <boost/multiprecision/cpp_int.hpp>
#include <cstdint>
void test()
{
typedef boost::multiprecision::cpp_int Num;
typedef std::uint32_t Div;
Num n(123);
Div d(13);
//Div r = n % d; // error: no implicit conversion
Num rn = n % d; // this works...
Div r = rn.convert_to< Div >(); // but explicit conversion is required
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8996> 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:13 UTC