Opened 14 years ago

Closed 14 years ago

#2108 closed Bugs (wontfix)

matrix_row<symmetric_matrix<>> doesn't iterate over entire row

Reported by: eherbst@… 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)

test.cpp (543 bytes ) - added by eherbst@… 14 years ago.
symmetric_row_iterator.cpp (838 bytes ) - added by Gunter 14 years ago.
show difference between iterator and const_iterator

Download all attachments as: .zip

Change History (3)

by eherbst@…, 14 years ago

Attachment: test.cpp added

by Gunter, 14 years ago

Attachment: symmetric_row_iterator.cpp added

show difference between iterator and const_iterator

comment:1 by Gunter, 14 years ago

Milestone: To Be DeterminedBoost 1.36.0
Resolution: wontfix
Severity: ProblemCosmetic
Status: newclosed

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.