Boost C++ Libraries: Ticket #2784: Wrong initialization of data members in packed_pixel constructors https://svn.boost.org/trac10/ticket/2784 <p> Just stumbled upon it by accident. </p> <p> The constructor "packed_pixel(int chan0, int chan1, int chan2, int chan3)" assigns "at_c&lt;2&gt;(*this)=chan3;" (overwriting the previous value of at_c&lt;2&gt;). This should be "at_c&lt;3&gt;(*this)=chan3;" </p> <p> Similar problem exists in the constructor "packed_pixel(int chan0, int chan1, int chan2, int chan3, int chan4)" where "chan3" and "chan4" are assigned incorrectly. </p> <p> I have not included a patch, since fixing the problem is straight forward. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2784 Trac 1.4.3 Hailin Jin Fri, 20 Feb 2009 19:12:59 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2784#comment:1 https://svn.boost.org/trac10/ticket/2784#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in the trunk (Revision <a class="missing ticket">#51352</a>) </p> Ticket