We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5520a56 + 3dd7ba1 commit 39ef1fdCopy full SHA for 39ef1fd
1 file changed
include/boost/graph/distributed/adjlist/serialization.hpp
@@ -13,6 +13,7 @@
13
# include <boost/lexical_cast.hpp>
14
# include <boost/foreach.hpp>
15
# include <boost/filesystem/path.hpp>
16
+# include <boost/filesystem/directory.hpp>
17
# include <boost/filesystem/operations.hpp>
18
# include <cctype>
19
# include <fstream>
@@ -91,7 +92,7 @@ namespace detail { namespace parallel
91
92
93
for (filesystem::directory_iterator i(filename), end; i != end; ++i)
94
{
- if (!filesystem::is_regular(*i))
95
+ if (!filesystem::is_regular_file(*i))
96
boost::throw_exception(std::runtime_error("directory contains non-regular entries"));
97
98
std::string process_name = i->path().filename().string();
0 commit comments