#1513 Remove ability to compare different types of iterators
|Reported by||Steffen Müthing (firstname.lastname@example.org)|
|Reported at||Oct 14, 2014 13:05|
|Version||Git (pre2.4) [autotools]|
|Operating System||Unspecified / All|
|Last edited by||Christoph Grüninger (email@example.com)|
|Last edited at||Jun 17, 2015 08:11|
The grid interface currently allows the user to compare iterators of different types, you can e.g. compare a LevelIterator with a HierarchicIterator. This feature has been there for as long as I know Dune (I think it was probably added to simplify working with the EntityPointer), but I don't think it makes a lot of sense because even if two iterators of different types (or an iterator and an EntityPointer) point at the same entity, they are still fundamentally very different objects - if you want to know whether they point at the same entity, you should state that explicitly by dereferencing them (*it1 == *it2).
Finally, the EntityPointer (which might be a reason to keep this functionality around) is going away anyway.
So I'd like to deprecate the relevant comparison operators in 2.4 and only allow comparing iterators of the same type in 3.0. Are there any reasons to keep this functionality around?