Opened 13 years ago

Closed 13 years ago

#391 closed enhancement (fixed)

return type in iterator_traits is hard-coded to double

Reported by: Peter Owned by: Jari Häkkinen
Priority: major Milestone: yat 0.5
Component: utility Version: trunk
Keywords: Cc:

Description (last modified by Peter)

related to ticket:369

I guess the reason for this is that all weighted iterators are const iterators, but is not very flexible. It would be nicer if we could have a mechanism to decide the return type. For the weighted iterators the mechanism already exists in the PolicyClass but should be propagated to the interface of the iterator.

Perhaps, for completeness, we should have value, reference, and pointer types for both data and weight.

Change History (2)

comment:1 Changed 13 years ago by Peter

Description: modified (diff)

comment:2 Changed 13 years ago by Peter

Resolution: fixed
Status: newclosed

fixed in [1373] and [1374]

Note: See TracTickets for help on using tickets.