Opened 14 years ago
Closed 14 years ago
#2108 closed Bugs (wontfix)
matrix_row<symmetric_matrix<>> doesn't iterate over entire row
Reported by: | Owned by: | Gunter | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | uBLAS |
Version: | Boost 1.35.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
If this behavior is intended, the online docs don't make it clear.
Thanks.
Attachments (2)
Change History (3)
by , 14 years ago
by , 14 years ago
Attachment: | symmetric_row_iterator.cpp added |
---|
comment:1 by , 14 years ago
Milestone: | To Be Determined → Boost 1.36.0 |
---|---|
Resolution: | → wontfix |
Severity: | Problem → Cosmetic |
Status: | new → closed |
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.
Please refer to the attached example.
Note:
See TracTickets
for help on using tickets.
show difference between iterator and const_iterator