Index: /trunk/FACT++/src/StateMachineDimControl.cc
===================================================================
--- /trunk/FACT++/src/StateMachineDimControl.cc	(revision 15187)
+++ /trunk/FACT++/src/StateMachineDimControl.cc	(revision 15188)
@@ -550,6 +550,9 @@
     //     fVerbosity = 90;
 
-    const boost::filesystem::path path(conf.GetName());
-    const string fname = path.filename().string();
+#if BOOST_VERSION < 104600
+    const string fname = boost::filesystem::path(conf.GetName()).filename();
+#else
+    const string fname = boost::filesystem::path(conf.GetName()).filename().string();
+#endif
 
     if (fname=="dimserver")
Index: /trunk/FACT++/src/dimctrl.cc
===================================================================
--- /trunk/FACT++/src/dimctrl.cc	(revision 15187)
+++ /trunk/FACT++/src/dimctrl.cc	(revision 15188)
@@ -1,3 +1,4 @@
 #include "StateMachineDimControl.h"
+
 #include "RemoteControl.h"
 
@@ -8,9 +9,14 @@
 #include "Main.h"
 
+namespace fs = boost::filesystem;
+
 template<class T>
 int RunShell(Configuration &conf)
 {
-    const boost::filesystem::path path(conf.GetName());
-    const string fname = path.filename().string();
+#if BOOST_VERSION < 104600
+    const string fname = fs::path(conf.GetName()).filename();
+#else
+    const string fname = fs::path(conf.GetName()).filename().string();
+#endif
 
     StateMachineDimControl::fIsServer = fname=="dimserver";
@@ -20,6 +26,9 @@
 void SetupConfiguration(Configuration &conf)
 {
-    const boost::filesystem::path path(conf.GetName());
-    const string fname = path.filename().string();
+#if BOOST_VERSION < 104600
+    const string fname = fs::path(conf.GetName()).filename();
+#else
+    const string fname = fs::path(conf.GetName()).filename().string();
+#endif
 
     po::options_description control("Options ("+fname+")");
@@ -108,6 +117,9 @@
         throw runtime_error("--force-console must be used with --console/-c");
 
-    const boost::filesystem::path path(conf.GetName());
-    const string fname = path.filename().string();
+#if BOOST_VERSION < 104600
+    const string fname = fs::path(conf.GetName()).filename();
+#else
+    const string fname = fs::path(conf.GetName()).filename().string();
+#endif
 
     if (fname=="dimserver" && !conf.Get<bool>("force-console"))
