Skip to content

Commit

Permalink
Fix deprecation warning bug for gcc 10.2 (#683)
Browse files Browse the repository at this point in the history
Related to #660,
see #660 (comment)
  • Loading branch information
marco-langer authored Jun 7, 2022
1 parent 2f7c3db commit 9ecdb87
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,10 @@ auto color_converted_view(any_image_view<Views...> const& src)
template <typename DstP, typename ...Views, typename CC>
[[deprecated("Use color_converted_view(const any_image_view<Views...>& src, CC) instead.")]]
inline
auto any_color_converted_view(const any_image_view<Views...>& src, CC)
auto any_color_converted_view(const any_image_view<Views...>& src, CC cc)
-> typename color_converted_view_type<any_image_view<Views...>, DstP, CC>::type
{
using cc_view_t = typename color_converted_view_type<any_image_view<Views...>, DstP, CC>::type;
return apply_operation(src, detail::color_converted_view_fn<DstP, cc_view_t>());
return color_converted_view(src, cc);
}

/// \ingroup ImageViewTransformationsColorConvert
Expand All @@ -398,8 +397,7 @@ inline
auto any_color_converted_view(const any_image_view<Views...>& src)
-> typename color_converted_view_type<any_image_view<Views...>, DstP>::type
{
using cc_view_t = typename color_converted_view_type<any_image_view<Views...>, DstP>::type;
return apply_operation(src, detail::color_converted_view_fn<DstP, cc_view_t>());
return color_converted_view(src);
}

/// \}
Expand Down

0 comments on commit 9ecdb87

Please sign in to comment.