Ticket #4919: selfassign.patch
File selfassign.patch, 770 bytes (added by , 12 years ago) |
---|
-
boost/gil/gil_concept.hpp
a b namespace detail { 456 456 template <typename T> 457 457 struct ChannelIsMutableConcept { 458 458 void constraints() { 459 c =c;459 c1=c2; 460 460 using std::swap; 461 swap(c ,c);461 swap(c1,c2); 462 462 } 463 T c; 463 T c1; 464 T c2; 464 465 }; 465 466 } 466 467 … … struct MutableHomogeneousPixelConcept { 951 952 void constraints() { 952 953 gil_function_requires<HomogeneousPixelConcept<P> >(); 953 954 gil_function_requires<MutableHomogeneousColorBaseConcept<P> >(); 954 p[0]= p[0];955 p[0]=v; 955 956 } 956 957 P p; 958 typename P::template element_type<P>::type v; 957 959 }; 958 960 959 961 /// \brief Pixel concept that is a Regular type