Index: trunk/FACT++/src/Configuration.cc
===================================================================
--- trunk/FACT++/src/Configuration.cc	(revision 12786)
+++ trunk/FACT++/src/Configuration.cc	(revision 12787)
@@ -1155,6 +1155,9 @@
     const po::parsed_options parsed_database =
         fDatabase.empty() ? po::parsed_options(&opt_database) :
+#if BOOST_VERSION < 104700
         parse_database(path.filename(), fDatabase, opt_database, !checkdb);
-
+#else
+        parse_database(path.filename().string(), fDatabase, opt_database, !checkdb);
+#endif
     // ------------------------ (11) -------------------------
 
@@ -1329,5 +1332,9 @@
 
     string pname = path.parent_path().string();
+#if BOOST_VERSION < 104700
     string fname = path.filename();
+#else
+    string fname = path.filename().string();
+#endif
 
     // If the filename starts with "lt-" remove it from the name
@@ -1419,5 +1426,9 @@
     }
 
+#if BOOST_VERSION < 104700
     const std::string n = boost::filesystem::path(fName).filename();
+#else
+    const std::string n = boost::filesystem::path(fName).filename().string();
+#endif
 
     const string name = PACKAGE_STRING;
