Skip to content

Commit 05f8ae0

Browse files
authored
Remove Min and Max functions (#14)
The functions were conflicting with some Arduino Due macros and they weren't being used, so they've been removed.
1 parent 4f8fe99 commit 05f8ae0

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/FixedPoints/Details.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,6 @@ namespace FIXED_POINTS_DETAILS
4747
constexpr static const auto Value = sizeof(T) * CHAR_BIT;
4848
};
4949

50-
template< typename T, typename U = T >
51-
constexpr auto Max(const T & left, const U & right) noexcept -> decltype((left > right) ? left : right)
52-
{
53-
return (left > right) ? left : right;
54-
}
55-
56-
template< typename T, T Left, T Right >
57-
constexpr auto Max(void) noexcept -> decltype((Left > Right) ? Left : Right)
58-
{
59-
return (Left > Right) ? Left : Right;
60-
}
61-
62-
template< typename T, typename U = T >
63-
constexpr auto Min(const T & left, const U & right) noexcept -> decltype((left < right) ? left : right)
64-
{
65-
return (left < right) ? left : right;
66-
}
67-
68-
template< typename T, T Left, T Right >
69-
constexpr auto Min(void) noexcept -> decltype((Left < Right) ? Left : Right)
70-
{
71-
return (Left < Right) ? Left : Right;
72-
}
73-
7450
template< bool Condition, typename TTrue, typename TFalse >
7551
struct Conditional;
7652

0 commit comments

Comments
 (0)