Commit 9ca8bb5d authored by Michaël Roynard's avatar Michaël Roynard
Browse files

Fix segfault

parent f23471b2
Pipeline #12449 passed with stages
in 14 minutes and 22 seconds
......@@ -101,9 +101,7 @@ namespace mln
template <class I>
struct image_adaptor : detail::image_adaptor_base_indexable<I>,
detail::image_adaptor_base_with_extension<I>,
New_Image<I>
struct image_adaptor : detail::image_adaptor_base_indexable<I>, detail::image_adaptor_base_with_extension<I>
{
public:
/// Type definitions
......
......@@ -11,7 +11,7 @@ namespace mln
template <class I, class F>
class transform_view : public image_adaptor<I>
class transform_view : public image_adaptor<I>, public New_Image<transform_view<I, F>>
{
using fun_t = F;
fun_t fun_;
......@@ -118,7 +118,7 @@ namespace mln
return mln::ranges::view::transform(this->base().new_pixels(), pxwrapper);
}
decltype(auto) concretize() const { return imchvalue_new<value_type>(this->base()); }
decltype(auto) concretize() const { return this->base().template ch_value<value_type>(); }
#ifdef PYLENE_CONCEPT_TS_ENABLED
template <concepts::Value Val>
......@@ -127,7 +127,7 @@ namespace mln
#endif
decltype(auto) ch_value() const
{
return imchvalue_new<Val>(this->base());
return this->base().template ch_value<Val>();
}
......
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