--- a/boost/gil/gil_concept.hpp +++ b/boost/gil/gil_concept.hpp @@ -456,11 +456,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,9 +952,10 @@ struct MutableHomogeneousPixelConcept { void constraints() { gil_function_requires >(); gil_function_requires >(); - p[0]=p[0]; + p[0]=v; } P p; + typename P::template element_type

::type v; }; /// \brief Pixel concept that is a Regular type