From 05f8ae0c8368f167446d68c9c4912122aa995696 Mon Sep 17 00:00:00 2001 From: Pharap <2933055+Pharap@users.noreply.github.com> Date: Wed, 24 Jan 2018 19:19:18 +0000 Subject: [PATCH] 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. --- src/FixedPoints/Details.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/FixedPoints/Details.h b/src/FixedPoints/Details.h index b3ce6e6..4ad3e4a 100644 --- a/src/FixedPoints/Details.h +++ b/src/FixedPoints/Details.h @@ -47,30 +47,6 @@ namespace FIXED_POINTS_DETAILS constexpr static const auto Value = sizeof(T) * CHAR_BIT; }; - template< typename T, typename U = T > - constexpr auto Max(const T & left, const U & right) noexcept -> decltype((left > right) ? left : right) - { - return (left > right) ? left : right; - } - - template< typename T, T Left, T Right > - constexpr auto Max(void) noexcept -> decltype((Left > Right) ? Left : Right) - { - return (Left > Right) ? Left : Right; - } - - template< typename T, typename U = T > - constexpr auto Min(const T & left, const U & right) noexcept -> decltype((left < right) ? left : right) - { - return (left < right) ? left : right; - } - - template< typename T, T Left, T Right > - constexpr auto Min(void) noexcept -> decltype((Left < Right) ? Left : Right) - { - return (Left < Right) ? Left : Right; - } - template< bool Condition, typename TTrue, typename TFalse > struct Conditional;