Commit 5643b06f authored by Michaël Roynard's avatar Michaël Roynard
Browse files

Fix bug in WritableImage

parent 843bf2b5
......@@ -83,7 +83,7 @@ namespace mln::concepts
requires(WIma ima) {
{ ima.new_values() } -> stl::OutputRange<image_value_t<WIma>>&&;
// Check Writability of each pixel of the range
requires OutputPixel<stl::iter_value_t<stl::iterator_t<decltype(ima.new_pixels())>>>;
requires OutputPixel<std::common_type_t<image_pixel_t<WIma>, stl::iter_value_t<stl::iterator_t<decltype(ima.new_pixels())>>>>;
};
} // namespace detail
......
......@@ -50,8 +50,7 @@ TEST(Core, Image_OutputImage2D)
{
#ifdef PYLENE_CONCEPT_TS_ENABLED
// foo(mln::image2d<int>{});
// bar(mln::details::ndpix<int, 2>{});
foo(mln::image2d<int>{});
// static_assert(concepts::OutputImage<mln::image2d<int>>);
#endif // PYLENE_CONCEPT_TS_ENABLED
......
Markdown is supported
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