Re: [Boost-bugs] [Boost C++ Libraries] #6521: Directory listing using C++11 range-based for loops

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: 2017-06-13 14:11:26


#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 mlimber):

 Note that because {{{directory_iterator}}} supports
 {{{begin()}}}/{{{end()}}}, one can already use range-for loops like this:

 {{{#!cpp
 for( const auto& dir_ent : directory_iterator{ "my/path/to/iterate" } )
 {
     cout << dir_ent.path() << '\n';
 }
 }}}

--
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/6521#comment:3>
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-06-13 14:15:55 UTC