1414: Remove a useless specialization of mln::math::abs.

https://svn.lrde.epita.fr/svn/oln/trunk/milena Index: ChangeLog from Roland Levillain <roland@lrde.epita.fr> Remove a useless specialization of mln::math::abs. * mln/math/abs.hh (abs(const value::int_s<n>&)): Remove this specialization, as value::int_s shall handle the required conversion automatically. abs.hh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) Index: mln/math/abs.hh --- mln/math/abs.hh (revision 1414) +++ mln/math/abs.hh (working copy) @@ -30,12 +30,12 @@ /*! \file mln/math/abs.hh * - * \brief Define abs routine. + * \brief Define the absolute value (abs) routine. */ # include <cmath> -# include <mln/value/all.hh> +# include <mln/value/all.hh> namespace mln @@ -62,12 +62,6 @@ return v; } - template <unsigned n> - value::int_s<n> abs(const value::int_s<n>& v) - { - return std::abs(v.to_enc()); - } - # endif // ! MLN_INCLUDE_ONLY } // end of namespace mln::math
participants (1)
-
Roland Levillain