26 #include <mln/core/concept/image.hh>
27 #include <mln/value/concept/all.hh>
28 #include <mln/trait/op/plus.hh>
29 #include <mln/value/builtin/all.hh>
37 struct my_image2d : Image< my_image2d<T> >
49 struct set_precise_binary_< op::
plus, int, float >
57 template <
typename I,
typename J>
58 struct set_binary_< op::
plus, Image, I, Image, J >
66 template <
typename T,
typename U>
67 struct set_precise_binary_< op::
plus, my_image2d<T>, my_image2d<U> >
69 typedef mln_trait_op_plus(T, U) V;
70 typedef my_image2d<V>& ret;
81 mln_trait_op_plus_(
int,
float) tmp;
85 my_image2d<float>* ptr;
86 mln_trait_op_plus_(my_image2d<int>, my_image2d<float>) tmp = *ptr;