|
Boost : |
From: Marcus Lindblom (macke_at_[hidden])
Date: 2007-03-25 12:17:34
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk