From c1084347af9940fa558e734cf15177bcb4749ea6 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Wed, 19 Dec 2012 05:09:05 +0000 Subject: [PATCH] Apply patch for Lubomir; Refs #4919 [SVN r82092] --- include/boost/gil/gil_concept.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/boost/gil/gil_concept.hpp b/include/boost/gil/gil_concept.hpp index 2299e3221..7c81a1e12 100644 --- a/include/boost/gil/gil_concept.hpp +++ b/include/boost/gil/gil_concept.hpp @@ -272,8 +272,7 @@ struct PointNDConcept { LT lt=axis_value(point); axis_value(point)=lt; - value_type v=point[0]; ignore_unused_variable_warning(v); - point[0]=point[0]; +// value_type v=point[0]; ignore_unused_variable_warning(v); } P point; }; @@ -456,11 +455,12 @@ namespace detail { template struct ChannelIsMutableConcept { void constraints() { - c=c; + c1=c2; using std::swap; - swap(c,c); + swap(c1,c2); } - T c; + T c1; + T c2; }; } @@ -951,8 +951,10 @@ struct MutableHomogeneousPixelConcept { void constraints() { gil_function_requires >(); gil_function_requires >(); - p[0]=p[0]; + p[0]=v; + v=p[0]; } + typename P::template element_type

::type v; P p; };