Re: [Boost-bugs] [Boost C++ Libraries] #8996: Boost.Multiprecision - implicit conversion of reminder to divisor type.

Subject: Re: [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-15 10:13:38


#8996: Boost.Multiprecision - implicit conversion of reminder to divisor type.
-------------------------------+----------------------------
  Reporter: anonymous | Owner: johnmaddock
      Type: Feature Requests | Status: closed
 Milestone: To Be Determined | Component: multiprecision
   Version: Boost 1.54.0 | Severity: Cosmetic
Resolution: wontfix | Keywords:
-------------------------------+----------------------------
Changes (by johnmaddock):

 * status: new => closed
 * resolution: => wontfix

Comment:

 This is what the integer modulus function is for
 http://www.boost.org/doc/libs/1_54_0/libs/multiprecision/doc/html/boost_multiprecision/ref/number.html#boost_multiprecision.ref.number.integer_functions

 {{{
 #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 = integer_modulus(n, d);
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8996#comment:1>
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