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 12:58:28


#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 johnmaddock):

 Note that this issue can occur with built-in types too:

 {{{
    short sa(1), sb(2), sc(3);
    short sd = (std::min)(sa, sb + sc); // ambiguous
 }}}

 So IMO it is correct to fix this with a typecast at the call site of
 std::min/max.

 Which is not to say I won't add the overloads to namespace
 boost::multiprecision as well... once I have them correct and move enabled
 etc...

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