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

Merge branch 'development/fix-concretize-chvalue' into 'development/ranges'

Fix ndimage::concretize and ndimage::ch_value implementation

See merge request !37
parents 9b65c422 c167cbe3
Pipeline #12737 passed with stages
in 13 minutes and 42 seconds
......@@ -342,27 +342,16 @@ namespace mln
/// \name Concrete-related Image Methods
/// \{
const concrete_type concretize() const { return *static_cast<const concrete_type*>(this); }
concrete_type concretize() { return *static_cast<concrete_type*>(this); }
auto concretize() const { return imconcretize(*this); }
#ifdef PYLENE_CONCEPT_TS_ENABLED
template <concepts::Value Val>
#else
template <typename Val>
#endif // PYLENE_CONCEPT_TS_ENABLED
const ch_value_type<Val> ch_value() const
auto ch_value() const
{
return {concretize(), mln::init()};
}
#ifdef PYLENE_CONCEPT_TS_ENABLED
template <concepts::Value Val>
#else
template <typename Val>
#endif // PYLENE_CONCEPT_TS_ENABLED
ch_value_type<Val> ch_value()
{
return {concretize(), mln::init()};
return imchvalue<Val>(*this);
}
/// \brief Resize the image to fit \p domain.
......
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