From 06c6f2019181211a23ea93c53b5c92c8985a28a3 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Wed, 23 Apr 2025 11:32:36 +0200
Subject: [PATCH] silence boost deprecation warnings
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

‘boost::filesystem::path boost::filesystem::path::branch_path() const’ is deprecated
---
 modules/mol/alg/src/lddt.cc | 4 ++--
 tools/molck/main.cc         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/mol/alg/src/lddt.cc b/modules/mol/alg/src/lddt.cc
index 4b913efdb..e76621b05 100644
--- a/modules/mol/alg/src/lddt.cc
+++ b/modules/mol/alg/src/lddt.cc
@@ -135,8 +135,8 @@ CompoundLibPtr load_compound_lib(const String& custom_path)
        "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.branch_path();
-    fs::path share_path = path_only.branch_path();
+    fs::path path_only=path_and_exe.parent_path();
+    fs::path share_path = path_only.parent_path();
     share_path = share_path / "share" / "openstructure" / "compounds.chemlib";
 
     String share_path_string=BFPathToString(share_path);
diff --git a/tools/molck/main.cc b/tools/molck/main.cc
index efed0e21f..b855dc5dd 100644
--- a/tools/molck/main.cc
+++ b/tools/molck/main.cc
@@ -116,8 +116,8 @@ ost::conop::CompoundLibPtr load_compound_lib(const String& custom_path)
              "look for compounds.chemlib in the current working directory");
   } else {
     fs::path path_and_exe(exe_path);
-    fs::path path_only=path_and_exe.branch_path();
-    fs::path share_path = path_only.branch_path();
+    fs::path path_only=path_and_exe.parent_path();
+    fs::path share_path = path_only.parent_path();
     share_path = share_path / "share" / "openstructure" / "compounds.chemlib";
 
     String share_path_string=BFPathToString(share_path);
-- 
GitLab