[Boost-bugs] [Boost C++ Libraries] #10941: boost/multiprecision/cpp_int/misc.hpp uses boost::math::gcd (and lcm), but does not include common_factor_rt.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #10941: boost/multiprecision/cpp_int/misc.hpp uses boost::math::gcd (and lcm), but does not include common_factor_rt.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-18 18:45:26


#10941: boost/multiprecision/cpp_int/misc.hpp uses boost::math::gcd (and lcm), but
does not include common_factor_rt.hpp
------------------------------+----------------------------
 Reporter: pdimov | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------------
 At line 508:

 {{{
    *result.limbs() = boost::math::gcd(*a.limbs(), *b.limbs());
 }}}

 This is in a template, so MSVC has no problems with it, only g++ and
 clang++ complain.

 The reason this was not a problem before was that
 boost/multiprecision/rational_adaptor.hpp uses Rational, which used to
 include math/common_factor_rt.hpp, but no longer does.

 Either math:: should be made integer::, the include added, or both.

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