Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-08-11 15:57:20


Martin Wille <mw8329_at_[hidden]> writes:

> David Abrahams wrote:
>> Martin Wille writes:
> ...
>>>Investigation of the problem revealed that the documenation for
>>>path::iterator says it is a bidirectional iterator while the
>>>implementation uses single_pass_traversal_tag. This looks
>>>wrong to me.
>> The documentation must be wrong, because the implementation never
>> included a decrement implementation.
>> It might be possible to make the user's code compile for this case,
>> but I'm not sure we would be doing him/her a service, considering
>> that the concepts don't require X a = b++;
>> to compile.
>
> Line 95 of path.hpp declares void decrement(),

Sorry, I was looking at operations.hpp. This is a different iterator?

> lines 669-679 in path_posix_windows implement it.
>
> Note, this is not the directory iterator.

OK, I agree with your analysis -- the traversal category appears to
be wrong.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk