Commit 28448a69 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

tests/trait/op/plus.cc: Kill warnings.

parent ce984130
2013-03-18 Guillaume Lazzara <z@lrde.epita.fr>
* tests/trait/op/plus.cc: Kill warnings.
2013-03-18 Guillaume Lazzara <z@lrde.epita.fr>
 
* mln/io/magick/internal/init_magick.hh: Add a missing inline.
......@@ -102,12 +102,12 @@ namespace mln
template <typename T, typename U>
struct set_precise_binary_< op::plus, my_image2d<T>, my_image2d<U> >
{
typedef mln_trait_op_plus(T, U) V;
typedef mln_trait_op_plus(T, U) V;
typedef my_image2d<V>& ret;
};
}
}
int main()
......@@ -116,11 +116,13 @@ int main()
{
mln_trait_op_plus_(int, float) tmp;
tmp = 5.1f;
(void) tmp;
}
{
my_image2d<float> ima;
my_image2d<float>* ptr = &ima;
mln_trait_op_plus_(my_image2d<int>, my_image2d<float>) tmp = *ptr;
tmp.m();
(void) tmp;
}
}
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