Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6521: Directory listing using C++11 range-based for loops
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-15 12:52:51
#6521: Directory listing using C++11 range-based for loops
-----------------------------------+----------------------------------------
Reporter: mustrumr97@⦠| Owner: bemandawes
Type: Feature Requests | Status: assigned
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.48.0 | Severity: Cosmetic
Resolution: | Keywords:
-----------------------------------+----------------------------------------
Comment (by mustrumr97@â¦):
I have read the mailing list. I think all filtering should be moved to the
directory iterators and that the helper functions should only be used for
passing parameters to the iterator constructor like this:
{{{
template<class... argts>
boost::iterator_range<directory_iterator>
directory_range(argts... args){
return boost::iterator_range<directory_iterator>(
directory_iterator(args...),
directory_iterator()
);
}
template<class... argts>
boost::iterator_range<recursive_directory_iterator>
recursive_directory_range(argts... args){
return boost::iterator_range<recursive_directory_iterator(
recursive_directory_iterator(args...),
recursive_directory_iterator()
);
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6521#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC