Opened 6 years ago

Last modified 6 years ago

#12263 new Bugs

ublas matrix iterators do not include "->" member access (dereferencing) operator, although the operator is referenced in the documentation

Reported by: douglas.schuyler@… Owned by: Gunter
Milestone: To Be Determined Component: uBLAS
Version: Boost 1.61.0 Severity: Problem
Keywords: oversight ublas matrix iterator member access dereference Cc:

Description

The documentation for the ublas matrix iterators includes the "->" operator for member access (dereferencing), but the source code does not include this operator in either the exposed iterator classes (i.e. iterator1/2) nor the base classes (i.e. random_access_iterator_base).

Documentation: http://www.boost.org/doc/libs/1_61_0/libs/numeric/ublas/doc/iterator_concept.html#1IndexedBidirectionalIterator

Iterator1 class reference: http://www.boost.org/doc/libs/1_46_0/libs/numeric/ublas/doc/html/classboost_1_1numeric_1_1ublas_1_1matrix_1_1iterator1.html

Similar observations have been made on StackOverflow, but appear to have not been written up. See here: http://stackoverflow.com/questions/26462271/why-doesnt-the-arrow-operator-work-on-boostnumericublasvector

This appears to be an oversight, but appears to reach throughout uBLAS.

Change History (1)

comment:1 by anonymous, 6 years ago

Keywords: oversight ublas matrix iterator member access dereference added
Note: See TracTickets for help on using tickets.