Boost C++ Libraries: Ticket #2108: matrix_row<symmetric_matrix<>> doesn't iterate over entire row https://svn.boost.org/trac10/ticket/2108 <p> If this behavior is intended, the online docs don't make it clear. </p> <p> Thanks. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2108 Trac 1.4.3 eherbst@… Fri, 11 Jul 2008 14:39:22 GMT attachment set https://svn.boost.org/trac10/ticket/2108 https://svn.boost.org/trac10/ticket/2108 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> Ticket Gunter Tue, 29 Jul 2008 19:56:01 GMT attachment set https://svn.boost.org/trac10/ticket/2108 https://svn.boost.org/trac10/ticket/2108 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">symmetric_row_iterator.cpp</span> </li> </ul> <p> show difference between iterator and const_iterator </p> Ticket Gunter Tue, 29 Jul 2008 20:00:45 GMT status, severity, milestone changed; resolution set https://svn.boost.org/trac10/ticket/2108#comment:1 https://svn.boost.org/trac10/ticket/2108#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">wontfix</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Cosmetic</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.36.0</span> </li> </ul> <p> This is the desired behavior. A const_iterator (or an iterator of a const reference) traverses over all elements of the corresponding vector. A mutable iterator traverses only over the mutable elements. Thus you may see different elements when switching from mutable to const iterator. </p> <p> Please refer to the attached example. </p> Ticket