
En fait, le bug que je cherchais n'avait rien à voir avec des traits d'Integre manquants ; il s'agissait d'un appel de fonction mal résolu. https://svn.lrde.epita.fr/svn/oln/prototypes/proto-1.0 ChangeLog | 5 +++++ oln/ops/arith.hh | 4 ++-- tests/level/tests/max | 3 --- tests/level/tests/min | 5 ----- 4 files changed, 7 insertions(+), 10 deletions(-) Index: olena/ChangeLog from Roland Levillain <roland@lrde.epita.fr> * oln/ops/arith.hh (min, max): Add oln:: namespace qualifier to resolve the call to the right operator on PWF's. Index: olena/tests/level/tests/min --- olena/tests/level/tests/min (revision 186) +++ olena/tests/level/tests/min (working copy) @@ -5,8 +5,6 @@ #include <oln/level/compare.hh> #include <ntg/int.hh> - - bool check() { oln::image2d<ntg::int_u8> ima1(10, 10); @@ -23,6 +21,3 @@ return false; return true; } - - - Index: olena/tests/level/tests/max --- olena/tests/level/tests/max (revision 186) +++ olena/tests/level/tests/max (working copy) @@ -5,8 +5,6 @@ #include <oln/level/compare.hh> #include <ntg/int.hh> - - bool check() { oln::image2d<ntg::int_u8> ima1(10, 10); @@ -23,4 +21,3 @@ return false; return true; } - Index: olena/oln/ops/arith.hh --- olena/oln/ops/arith.hh (revision 186) +++ olena/oln/ops/arith.hh (working copy) @@ -46,7 +46,7 @@ min (const abstract::image<L>& lhs, const abstract::image<R>& rhs) { - return image_for_all_p( min(pw_value(lhs), pw_value(rhs)) ); + return image_for_all_p( oln::min(pw_value(lhs), pw_value(rhs)) ); } template <typename L, typename R> @@ -56,7 +56,7 @@ max (const abstract::image<L>& lhs, const abstract::image<R>& rhs) { - return image_for_all_p( max(pw_value(lhs), pw_value(rhs)) ); + return image_for_all_p( oln::max(pw_value(lhs), pw_value(rhs)) ); } } // end of namespace oln