Re: [Boost-bugs] [Boost C++ Libraries] #11149: boost::multiprecision compilation fail with std::max

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11149: boost::multiprecision compilation fail with std::max
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-17 17:02:47


#11149: boost::multiprecision compilation fail with std::max
-------------------------------+----------------------------
  Reporter: minorlogic@… | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: multiprecision
   Version: Boost 1.57.0 | Severity: Showstopper
Resolution: wontfix | Keywords:
-------------------------------+----------------------------

Comment (by chtz@…):

 First of all, in all patches/examples you wrote above, you need to replace
 the arguments to {{{(std::min)(arg, a);}}} by the appropriate
 {{{t,t1,t2}}}. For a clean solution you should actually implement
 {{{min,max}}} similar to the way you implement {{{atan2}}}.

 However, that will indeed still not work with Eigen3.2, since (as you
 noted) we use something like {{{(max)(a,b)}}} which prevents ADL (for
 whatever reason ...)
 I don't really like having to fix this in Eigen3.2, but actually the
 {{{using std::max; ... (max)(A,B)}}} we are currently doing is more or
 less pointless, here.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11149#comment:14>
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:19 UTC