2 // Copyright 2018 Peter Dimov.
4 // Distributed under the Boost Software License, Version 1.0.
6 // See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt
9 // See library home page at http://www.boost.org/libs/filesystem
11 #include <boost/filesystem.hpp>
12 #include <boost/foreach.hpp>
13 #include <boost/config.hpp>
15 namespace fs
= boost::filesystem
;
20 fs::directory_iterator
const it
;
22 BOOST_FOREACH(fs::path
const& p
, it
)
28 #if !defined(BOOST_NO_CXX11_RANGE_BASED_FOR)
31 fs::directory_iterator
const it
;
33 for (fs::path
const& p
: it
)
42 fs::recursive_directory_iterator it
;
44 BOOST_FOREACH(fs::path
const& p
, it
)
50 #if !defined(BOOST_NO_CXX11_RANGE_BASED_FOR)
53 fs::recursive_directory_iterator
const it
;
55 for (fs::path
const& p
: it
)