--- image_view_factory.hpp.orig 2013-08-19 12:20:06.000000000 -0500 +++ image_view_factory.hpp 2013-08-19 13:11:49.000000000 -0500 @@ -479,7 +479,8 @@ BOOST_STATIC_CONSTANT(bool, is_mutable=pixel_is_reference::value && pixel_reference_is_mutable::value); private: typedef typename remove_reference::type src_pixel_t; - typedef typename kth_element_type::type channel_t; + typedef typename kth_element_type::type channel_ref_t; + typedef typename remove_reference::type channel_t; typedef typename src_pixel_t::const_reference const_ref_t; typedef typename pixel_reference_type::type ref_t; public: