From e7ccfaef74c9230ce099aa736ac830d1c4edb1be Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Thu, 5 Jul 2012 09:52:08 +0200
Subject: [PATCH] fix for boost 1.33

---
 tools/molck/main.cc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tools/molck/main.cc b/tools/molck/main.cc
index bf1576138..8ffa39765 100644
--- a/tools/molck/main.cc
+++ b/tools/molck/main.cc
@@ -1,6 +1,7 @@
 #include <unistd.h>
 #include <boost/program_options.hpp>
-#include <boost/filesystem.hpp>
+#include <boost/filesystem/path.hpp>
+#include <boost/filesystem/convenience.hpp>
 #include <ost/platform.hh>
 #include <ost/conop/model_check.hh>
 #include <ost/conop/conop.hh>
@@ -54,14 +55,14 @@ CompoundLibPtr load_compound_lib()
   }
   #else 
   ssize_t count = readlink( "/proc/self/exe", result, 1024 );
-  String exe_path = std::string( result, (count > 0) ? count : 0 );   
+  exe_path = std::string( result, (count > 0) ? count : 0 );
   #endif
   if (exe_path.empty()) { 
     std::cerr << "Could not determine the path of the molck executable. Will only look for compounds.chemlib in the current working directory" << std::endl;
   } else {
     fs::path path_and_exe(exe_path);
-    fs::path path_only=path_and_exe.parent_path();  
-    fs::path share_path = path_only.parent_path(); 
+    fs::path path_only=path_and_exe.branch_path();
+    fs::path share_path = path_only.branch_path();
     share_path/="share";
     share_path/="openstructure";
     share_path/="compounds.chemlib";
-- 
GitLab