mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge pull request #667 from Teebonne/patch-7
Disambiguation from other max/min functions
This commit is contained in:
commit
297b331435
|
@ -51,7 +51,7 @@ constexpr Number abs(Number val)
|
||||||
/// constexpr max
|
/// constexpr max
|
||||||
/// </summary>
|
/// </summary>
|
||||||
template <typename NumberL, typename NumberR>
|
template <typename NumberL, typename NumberR>
|
||||||
constexpr typename std::common_type<NumberL, NumberR>::type max(NumberL lval, NumberR rval)
|
constexpr typename std::common_type<NumberL, NumberR>::type (max)(NumberL lval, NumberR rval)
|
||||||
{
|
{
|
||||||
return (lval < rval) ? rval : lval;
|
return (lval < rval) ? rval : lval;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ constexpr typename std::common_type<NumberL, NumberR>::type max(NumberL lval, Nu
|
||||||
/// constexpr min
|
/// constexpr min
|
||||||
/// </summary>
|
/// </summary>
|
||||||
template <typename NumberL, typename NumberR>
|
template <typename NumberL, typename NumberR>
|
||||||
constexpr typename std::common_type<NumberL, NumberR>::type min(NumberL lval, NumberR rval)
|
constexpr typename std::common_type<NumberL, NumberR>::type (min)(NumberL lval, NumberR rval)
|
||||||
{
|
{
|
||||||
return (lval < rval) ? lval : rval;
|
return (lval < rval) ? lval : rval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user