diff --git a/include/boost/gil/extension/dynamic_image/image_view_factory.hpp b/include/boost/gil/extension/dynamic_image/image_view_factory.hpp index 1418f162f1..7afb6b12ec 100644 --- a/include/boost/gil/extension/dynamic_image/image_view_factory.hpp +++ b/include/boost/gil/extension/dynamic_image/image_view_factory.hpp @@ -381,11 +381,10 @@ auto color_converted_view(any_image_view const& src) template [[deprecated("Use color_converted_view(const any_image_view& src, CC) instead.")]] inline -auto any_color_converted_view(const any_image_view& src, CC) +auto any_color_converted_view(const any_image_view& src, CC cc) -> typename color_converted_view_type, DstP, CC>::type { - using cc_view_t = typename color_converted_view_type, DstP, CC>::type; - return apply_operation(src, detail::color_converted_view_fn()); + return color_converted_view(src, cc); } /// \ingroup ImageViewTransformationsColorConvert @@ -398,8 +397,7 @@ inline auto any_color_converted_view(const any_image_view& src) -> typename color_converted_view_type, DstP>::type { - using cc_view_t = typename color_converted_view_type, DstP>::type; - return apply_operation(src, detail::color_converted_view_fn()); + return color_converted_view(src); } /// \}