Index: /trunk/FACT++/src/FACT.cc
===================================================================
--- /trunk/FACT++/src/FACT.cc	(revision 12779)
+++ /trunk/FACT++/src/FACT.cc	(revision 12780)
@@ -10,4 +10,5 @@
 #include <iostream>
 
+#include <boost/version.hpp>
 #include <boost/filesystem.hpp>
 
@@ -45,5 +46,9 @@
 void FACT::PrintVersion(const char *name)
 {
+#if BOOST_VERSION < 104700
     const std::string n = boost::filesystem::path(name).filename();
+#else
+    const std::string n = boost::filesystem::path(name).filename().string();
+#endif
 
     std::cout <<
