Boost logo

Boost :

Subject: Re: [boost] [filesystem] #6521 Directory listing using C++11 range-based for loops
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2012-04-20 04:12:30


On 19-04-2012 17:29, Beman Dawes wrote:

>> Is that the best way for filesystem directory iteration to support
>> range-based for?
>
> Ticket #5896, Range directory iterators, suggests basing a solution on
> boost::iterator_range<bfs::directory_iterator>, and that's an obvious
> alternative to explore.

If we follow

http://www.boost.org/doc/libs/1_49_0/libs/range/doc/html/range/reference/ranges/istream_range.html

then we could add

boost::iterator_range<...>
boost::directory_range( const boost::path& )
boost::iterator_range<...>
boost::recursive_directory_range( const boost::path& )

kind regards

-Thorsten


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