Ticket #9020: image_view_factory.hpp.patch

File image_view_factory.hpp.patch, 772 bytes (added by Shaun Marko <smarko@…>, 9 years ago)

patch to kth_channel_deref_fn in image_view_factory.hpp

  • image_view_factory.hpp

    old new  
    479479        BOOST_STATIC_CONSTANT(bool, is_mutable=pixel_is_reference<SrcP>::value && pixel_reference_is_mutable<SrcP>::value);
    480480    private:
    481481        typedef typename remove_reference<SrcP>::type src_pixel_t;
    482         typedef typename kth_element_type<src_pixel_t, K>::type channel_t;
     482        typedef typename kth_element_type<src_pixel_t, K>::type channel_ref_t;
     483        typedef typename remove_reference<channel_ref_t>::type channel_t;
    483484        typedef typename src_pixel_t::const_reference const_ref_t;
    484485        typedef typename pixel_reference_type<channel_t,gray_layout_t,false,is_mutable>::type ref_t;
    485486    public: