Commit f2b50a1a authored by Roland Levillain's avatar Roland Levillain
Browse files

Disambiguate operator- overload resolution with a pow_int_ operand.

	* mln/metal/math/pow.hh (mln::metal::math::impl::pow_int_):
	Use static const integers instead of enums.
parent d4f02aba
2013-02-06 Roland Levillain <roland@lrde.epita.fr>
Disambiguate operator- overload resolution with a pow_int_ operand.
* mln/metal/math/pow.hh (mln::metal::math::impl::pow_int_):
Use static const integers instead of enums.
2013-02-06 Roland Levillain <roland@lrde.epita.fr> 2013-02-06 Roland Levillain <roland@lrde.epita.fr>
   
Revive tests/value/graylevel.cc. Revive tests/value/graylevel.cc.
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE) // Copyright (C) 2007, 2008, 2009, 2013 EPITA Research and Development
// Laboratory (LRDE)
// //
// This file is part of Olena. // This file is part of Olena.
// //
...@@ -57,13 +58,13 @@ namespace mln ...@@ -57,13 +58,13 @@ namespace mln
template <int x, int n> template <int x, int n>
struct pow_int_ struct pow_int_
{ {
enum res_ { value = x * pow_int_<x, n-1>::value }; static const int value = x * pow_int_<x, n-1>::value;
}; };
template <int x> template <int x>
struct pow_int_< x, 0 > struct pow_int_< x, 0 >
{ {
enum res_ { value = 1 }; static const int value = 1;
}; };
template <> template <>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment