Skip to content

Commit 39ef1fd

Browse files
Merge pull request #35 from Lastique/feature/update_filesystem_usage
Update Boost.Filesystem usage
2 parents 5520a56 + 3dd7ba1 commit 39ef1fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/boost/graph/distributed/adjlist/serialization.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# include <boost/lexical_cast.hpp>
1414
# include <boost/foreach.hpp>
1515
# include <boost/filesystem/path.hpp>
16+
# include <boost/filesystem/directory.hpp>
1617
# include <boost/filesystem/operations.hpp>
1718
# include <cctype>
1819
# include <fstream>
@@ -91,7 +92,7 @@ namespace detail { namespace parallel
9192

9293
for (filesystem::directory_iterator i(filename), end; i != end; ++i)
9394
{
94-
if (!filesystem::is_regular(*i))
95+
if (!filesystem::is_regular_file(*i))
9596
boost::throw_exception(std::runtime_error("directory contains non-regular entries"));
9697

9798
std::string process_name = i->path().filename().string();

0 commit comments

Comments
 (0)