Opened 12 years ago

Closed 12 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:

Description

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 12 years ago by Peter

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

comment:2 Changed 12 years ago by Peter

Resolution: fixed
Status: newclosed

(In [1749]) fixes #480

Note: See TracTickets for help on using tickets.