
At 05:17 PM 8/22/2004, David Abrahams wrote:
Beman Dawes <bdawes@acm.org> writes:
What is weird is that even though the single_pass_traversal_tag is given, the path_test.cpp regression test uses operator-- in tests, and they compile fine.
So it looks like there is also a bug in iterator adaptors too, since I would think that the use of operator-- on a single pass iterator should fail.
It's not a bug to provide more functionality than the category allows. If you supply a decrement() operation, operator-- will call it.
OK. Thanks for the clarification. I guess that means the filesystem test needs an additional case that would work for a bidirectional iterator but fail for a single pass traversal iterator which supplies a decrement() operator. Any suggestions? --Beman