From c1e721d2d650dd9bc7f33fd31fa9307d4c27b7dd Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Tue, 1 Mar 2016 17:36:06 +0600 Subject: [PATCH] Fix real.h --- synfig-core/src/synfig/real.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/synfig-core/src/synfig/real.h b/synfig-core/src/synfig/real.h index 016e00c7c1d..b6e2df6ea9c 100644 --- a/synfig-core/src/synfig/real.h +++ b/synfig-core/src/synfig/real.h @@ -78,30 +78,30 @@ inline T approximate_ceil_custom(const T &a, const T &precision) { return std::ceil(a - precision); } -template< typename T, T func() = real_precision > +template inline bool approximate_equal(const T &a, const T &b) - { return approximate_equal_custom(a, b, func()); } -template< typename T, T func() = real_precision > + { return approximate_equal_custom(a, b, real_precision()); } +template inline bool approximate_not_equal(const T &a, const T &b) - { return approximate_not_equal_custom(a, b, func()); } -template< typename T, T func() = real_precision > + { return approximate_not_equal_custom(a, b, real_precision()); } +template inline bool approximate_less(const T &a, const T &b) - { return approximate_less_custom(a, b, func()); } -template< typename T, T func() = real_precision > + { return approximate_less_custom(a, b, real_precision()); } +template inline bool approximate_greater(const T &a, const T &b) - { return approximate_greater_custom(a, b, func()); } -template< typename T, T func() = real_precision > + { return approximate_greater_custom(a, b, real_precision()); } +template inline bool approximate_less_or_equal(const T &a, const T &b) - { return approximate_less_or_equal_custom(a, b, func()); } -template< typename T, T func() = real_precision > + { return approximate_less_or_equal_custom(a, b, real_precision()); } +template inline bool approximate_greater_or_equal(const T &a, const T &b) - { return approximate_greater_or_equal_custom(a, b, func()); } -template< typename T, T func() = real_precision > + { return approximate_greater_or_equal_custom(a, b, real_precision()); } +template inline T approximate_floor(const T &a) - { return approximate_floor_custom(a, func()); } -template< typename T, T func() = real_precision > + { return approximate_floor_custom(a, real_precision()); } +template inline T approximate_ceil(const T &a) - { return approximate_ceil_custom(a, func()); } + { return approximate_ceil_custom(a, real_precision()); } template