Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] Status of Ticket #2831?
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-03-01 10:42:41


Hi Olivier, thanks for bringing this to my attention. I don't see a
problem with this patch. I'll have the patch sit for a while ( couple
of days ) in the trunk to make sure it's doesn't create any problems.
Afterwards, I add it to the release branch. It should appear in Boost
1.43.

Thanks,
Christian

On Sat, Feb 27, 2010 at 9:48 AM, Olivier Tournaire <olitour_at_[hidden]> wrote:
> Hi,
>
> A colleague of mine opened a ticket more than a year ago
> (https://svn.boost.org/trac/boost/ticket/2831) for a GIL defect. In fact,
> the custom color converter for color_converted_view on any_view is not
> plugged. The problem is also described in the title of the ticket.
> What is the status of this ticket? The changes are very simple, and are
> still not done in 1.42 version.
> Instead of:
>
> template <typename DstP, typename Result> struct color_converted_view_fn {
>     typedef Result result_type;
>     template <typename View> result_type operator()(const View& src) const {
> return result_type(color_converted_view<DstP>(src)); }
> };
>
> There should be:
>
> template <typename DstP, typename Result, typename CC =
> default_color_converter> struct color_converted_view_fn {
>     typedef Result result_type;
>     color_converted_view_fn(CC cc = CC()): _cc(cc) {}
>
>     template <typename View> result_type operator()(const View& src) const {
> return result_type(color_converted_view<DstP>(src, _cc)); }
>
>     private:
>         CC _cc;
> };
>
> Best regards.
>
> Olivier
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net