Skip to content

Commit

Permalink
Fix real.h
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwarthog authored and morevnaproject committed Mar 1, 2016
1 parent a6c0f72 commit c1e721d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions synfig-core/src/synfig/real.h
Expand Up @@ -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<T> >
template<typename T>
inline bool approximate_equal(const T &a, const T &b)
{ return approximate_equal_custom(a, b, func()); }
template< typename T, T func() = real_precision<T> >
{ return approximate_equal_custom(a, b, real_precision<T>()); }
template<typename T>
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<T> >
{ return approximate_not_equal_custom(a, b, real_precision<T>()); }
template<typename T>
inline bool approximate_less(const T &a, const T &b)
{ return approximate_less_custom(a, b, func()); }
template< typename T, T func() = real_precision<T> >
{ return approximate_less_custom(a, b, real_precision<T>()); }
template<typename T>
inline bool approximate_greater(const T &a, const T &b)
{ return approximate_greater_custom(a, b, func()); }
template< typename T, T func() = real_precision<T> >
{ return approximate_greater_custom(a, b, real_precision<T>()); }
template<typename T>
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<T> >
{ return approximate_less_or_equal_custom(a, b, real_precision<T>()); }
template<typename T>
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<T> >
{ return approximate_greater_or_equal_custom(a, b, real_precision<T>()); }
template<typename T>
inline T approximate_floor(const T &a)
{ return approximate_floor_custom(a, func()); }
template< typename T, T func() = real_precision<T> >
{ return approximate_floor_custom(a, real_precision<T>()); }
template<typename T>
inline T approximate_ceil(const T &a)
{ return approximate_ceil_custom(a, func()); }
{ return approximate_ceil_custom(a, real_precision<T>()); }


template<typename T>
Expand Down

0 comments on commit c1e721d

Please sign in to comment.