diff --git a/include/xlnt/utils/numeric.hpp b/include/xlnt/utils/numeric.hpp index ed1eee830..901291338 100644 --- a/include/xlnt/utils/numeric.hpp +++ b/include/xlnt/utils/numeric.hpp @@ -51,7 +51,7 @@ constexpr Number abs(Number val) /// constexpr max /// template -constexpr typename std::common_type::type max(NumberL lval, NumberR rval) +constexpr typename std::common_type::type (max)(NumberL lval, NumberR rval) { return (lval < rval) ? rval : lval; } @@ -60,7 +60,7 @@ constexpr typename std::common_type::type max(NumberL lval, Nu /// constexpr min /// template -constexpr typename std::common_type::type min(NumberL lval, NumberR rval) +constexpr typename std::common_type::type (min)(NumberL lval, NumberR rval) { return (lval < rval) ? lval : rval; }