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-18 18:41:57
#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):
OK, I finally got around to doing some actual testing ;) It turns out
it's really easy to break std::min/max if these overloads are also
present. However, the patch here:
https://github.com/boostorg/multiprecision/commit/f57bd6b31a64787425ec891bd2ceb536c9036f72
gets your test case compiling OK as long as the
{{{
namespace std{
using boost::multiprecision::min;
using boost::multiprecision::max;
}
}}}
Is also present prior to including Eigen.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11149#comment:18> 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