diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 071c234c2e..4c5fc1cae0 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -596,7 +596,7 @@ template EIGEN_DEVICE_FUNC inline T mini(const T& x, const T& y) { - using std::min; + EIGEN_USING_STD_MATH(min); return min EIGEN_NOT_A_MACRO (x,y); } @@ -604,7 +604,7 @@ template EIGEN_DEVICE_FUNC inline T maxi(const T& x, const T& y) { - using std::max; + EIGEN_USING_STD_MATH(max); return max EIGEN_NOT_A_MACRO (x,y); }