
25 Mar
2007
25 Mar
'07
4:17 p.m.
Pavol Droba wrote:
Hi, [snip] Without the type erasure, the usage of iterators would get less convenient. For example, you would not be able to compare iterators with different finders. This is manifested when using default constructed find iterator as end-of-search tag.
You could perhaps make the == operator templated, forcing character but not finder equivalence? (Since you're only checking the position anyway?) (And provide a stronger equals() that checks the finder argument too?) Just tossing ideas. :) Cheers, /Marcus