Opened 15 years ago

Closed 15 years ago

#480 closed defect (fixed)

missing operator- for DataIterator

Reported by: Peter Owned by: Peter
Priority: minor Milestone: yat 0.5
Component: utility Version: trunk
Keywords: Cc:


I have this code snippet

vector<DataWeight> vec(10);
DataIterator<vector<DataWeight::iterator> first = data_iterator(vec.begin());
DataIterator<vector<DataWeight::iterator> last = data_iterator(vec.end());
int size = last - first;

where the last line does not compile.

Change History (2)

comment:1 Changed 15 years ago by Peter

boost::iterator_adaptor is used with forward_traversal_tag. Is that correct?

comment:2 Changed 15 years ago by Peter

Resolution: fixed
Status: newclosed

(In [1749]) fixes #480

Note: See TracTickets for help on using tickets.