Opened 9 years ago

Last modified 9 years ago

#765 new request

re-implement WeightedIterator as boost:zip_iterator

Reported by: Peter Owned by: Jari Häkkinen
Priority: minor Milestone: yat 0.x+
Component: utility Version: trunk
Keywords: Cc:


WeightedIterator is a special case of boost::zip_iterator and I noticed that !WEightedIterator seems to have some lacking functionality. The reference type is for example a DataWeightProxy? which allows to modify the data, but you have to modify it by assigning the entire DataWeight, i.e., if you have WeightedIterator iter

(*iter).data() = 42;

is not valid. Boost's Zip Iterator solves this, IIUC.

Change History (1)

comment:1 Changed 9 years ago by Peter

(In [3059]) add test that we can modify data() and weight() elements via WeightedIterator?. refs #765

Note: See TracTickets for help on using tickets.