$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r60059 - trunk/boost/gil/extension/dynamic_image
From: chhenning_at_[hidden]
Date: 2010-03-01 16:47:03
Author: chhenning
Date: 2010-03-01 16:47:03 EST (Mon, 01 Mar 2010)
New Revision: 60059
URL: http://svn.boost.org/trac/boost/changeset/60059
Log:
Fix for ticket #2831.
Text files modified: 
   trunk/boost/gil/extension/dynamic_image/image_view_factory.hpp |     9 +++++++--                               
   1 files changed, 7 insertions(+), 2 deletions(-)
Modified: trunk/boost/gil/extension/dynamic_image/image_view_factory.hpp
==============================================================================
--- trunk/boost/gil/extension/dynamic_image/image_view_factory.hpp	(original)
+++ trunk/boost/gil/extension/dynamic_image/image_view_factory.hpp	2010-03-01 16:47:03 EST (Mon, 01 Mar 2010)
@@ -70,9 +70,14 @@
     int _n;
     template <typename View> result_type operator()(const View& src) const { return result_type(nth_channel_view(src,_n)); }
 };
-template <typename DstP, typename Result> struct color_converted_view_fn {
+template <typename DstP, typename Result, typename CC = default_color_converter> 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)); }
+    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;
 };
 } // namespace detail