Boost C++ Libraries: Ticket #2132: const-correctness bug in sparse_ordering.hpp https://svn.boost.org/trac10/ticket/2132 <p> Did this code even get tested? Or am I on crack to think that it's wrong? </p> <p> This patch fixes it for my particular test case. </p> <div class="wiki-code"> <div class="diff"> <ul class="entries"> <li class="entry"> <h2> <a>sparse_ordering.hpp</a> </h2> <table class="trac-diff inline" cellspacing="0"> <colgroup> <col class="lineno"/><col class="lineno"/><col class="content"/> </colgroup> <thead> <tr> <th title="File sparse_ordering.hpp (revision 47085)"> </th> <th title="File sparse_ordering.hpp (working copy)"> </th> <td> <em></em> &nbsp; </td> </tr> </thead> <tbody class="unmod"> <tr> <th>128</th><th>128</th><td class="l"><span>&nbsp; //</span></td> </tr> <tr> <th>129</th><th>129</th><td class="l"><span>&nbsp; template &lt;class Graph, class Vertex, class ColorMap, class DegreeMap&gt;</span></td> </tr> <tr> <th>130</th><th>130</th><td class="l"><span>&nbsp; Vertex </span></td> </tr> </tbody> <tbody class="mod"> <tr class="first"> <th>131</th><th>&nbsp;</th><td class="l"><span>&nbsp; pseudo_peripheral_pair(Graph<del></del>&amp; G, const Vertex&amp; u, int&amp; ecc,</span></td> </tr> <tr class="last"> <th>&nbsp;</th><th>131</th><td class="r"><span>&nbsp; pseudo_peripheral_pair(Graph<ins>&nbsp;const</ins>&amp; G, const Vertex&amp; u, int&amp; ecc,</span></td> </tr> </tbody> <tbody class="unmod"> <tr> <th>132</th><th>132</th><td class="l"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ColorMap color, DegreeMap degree)</span></td> </tr> <tr> <th>133</th><th>133</th><td class="l"><span>&nbsp; {</span></td> </tr> <tr> <th>134</th><th>134</th><td class="l"><span>&nbsp; &nbsp; typedef typename property_traits&lt;ColorMap&gt;::value_type ColorValue;</span></td> </tr> </tbody> <tbody class="skipped"> <tr> <th><a href="#L152">&hellip;</a></th> <th><a href="#L152">&hellip;</a></th> <td> <em></em> &nbsp; </td> </tr> </tbody> <tbody class="unmod"> <tr> <th>152</th><th>152</th><td class="l"><span>&nbsp; // of the ordering generated by RCM.</span></td> </tr> <tr> <th>153</th><th>153</th><td class="l"><span>&nbsp; //</span></td> </tr> <tr> <th>154</th><th>154</th><td class="l"><span>&nbsp; template &lt;class Graph, class Vertex, class Color, class Degree&gt; </span></td> </tr> </tbody> <tbody class="mod"> <tr class="first"> <th>155</th><th>&nbsp;</th><td class="l"><span>&nbsp; Vertex find_starting_node(Graph<del></del>&amp; G, Vertex r, Color color, Degree degree)</span></td> </tr> <tr class="last"> <th>&nbsp;</th><th>155</th><td class="r"><span>&nbsp; Vertex find_starting_node(Graph<ins>&nbsp;const</ins>&amp; G, Vertex r, Color color, Degree degree)</span></td> </tr> </tbody> <tbody class="unmod"> <tr> <th>156</th><th>156</th><td class="l"><span>&nbsp; {</span></td> </tr> <tr> <th>157</th><th>157</th><td class="l"><span>&nbsp; &nbsp; Vertex x, y;</span></td> </tr> <tr> <th>158</th><th>158</th><td class="l"><span>&nbsp; &nbsp; int eccen_r, eccen_x;</span></td> </tr> </tbody> </table> </li> </ul> </div></div> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2132 Trac 1.4.3 Douglas Gregor Fri, 05 Sep 2008 21:04:56 GMT owner changed https://svn.boost.org/trac10/ticket/2132#comment:1 https://svn.boost.org/trac10/ticket/2132#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">doug_gregor</span> to <span class="trac-author">Douglas Gregor</span> </li> </ul> Ticket Jeremiah Willcock Tue, 27 Jan 2009 21:17:15 GMT owner, status changed https://svn.boost.org/trac10/ticket/2132#comment:2 https://svn.boost.org/trac10/ticket/2132#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jeremiah Willcock Tue, 27 Jan 2009 21:18:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2132#comment:3 https://svn.boost.org/trac10/ticket/2132#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/50823" title="Applied patch from #2132, closes #2132">[50823]</a>) Applied patch from <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2132" title="#2132: Bugs: const-correctness bug in sparse_ordering.hpp (closed: fixed)">#2132</a>, closes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2132" title="#2132: Bugs: const-correctness bug in sparse_ordering.hpp (closed: fixed)">#2132</a> </p> Ticket