|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67041 - trunk/boost/graph/distributed/adjlist
From: jewillco_at_[hidden]
Date: 2010-12-05 16:08:55
Author: jewillco
Date: 2010-12-05 16:08:52 EST (Sun, 05 Dec 2010)
New Revision: 67041
URL: http://svn.boost.org/trac/boost/changeset/67041
Log:
Fixed compile failure with Boost.Filesystem v3
Text files modified:
trunk/boost/graph/distributed/adjlist/serialization.hpp | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
Modified: trunk/boost/graph/distributed/adjlist/serialization.hpp
==============================================================================
--- trunk/boost/graph/distributed/adjlist/serialization.hpp (original)
+++ trunk/boost/graph/distributed/adjlist/serialization.hpp 2010-12-05 16:08:52 EST (Sun, 05 Dec 2010)
@@ -93,11 +93,7 @@
if (!filesystem::is_regular(*i))
boost::throw_exception(std::runtime_error("directory contains non-regular entries"));
-#if BOOST_VERSION >= 103600
- std::string process_name = i->path().filename();
-#else
- std::string process_name = i->leaf();
-#endif
+ std::string process_name = i->path().filename().string();
for (std::string::size_type i = 0; i < process_name.size(); ++i)
if (!is_digit(process_name[i]))
boost::throw_exception(std::runtime_error("directory contains files with invalid names"));
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk