Index: /trunk/FACT++/src/Readline.cc
===================================================================
--- /trunk/FACT++/src/Readline.cc	(revision 12780)
+++ /trunk/FACT++/src/Readline.cc	(revision 12781)
@@ -62,4 +62,5 @@
 #include <readline/history.h>
 
+#include <boost/version.hpp>
 #include <boost/filesystem.hpp>
 
@@ -109,5 +110,9 @@
 
     // Program name
+#if BOOST_VERSION < 104700
     static const string fname = boost::filesystem::path(prgname).filename();
+#else
+    static const string fname = boost::filesystem::path(prgname).filename().string();
+#endif
     rl_readline_name = fname.c_str();
 
