From e67e465c06d81ce13bcd11441f777ca8b02fa7be Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 30 Jul 2024 12:04:10 +0200 Subject: [PATCH] remove deprecated stuff --- src/debug.cc | 5 +---- src/factories/sequence.cc | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/debug.cc b/src/debug.cc index 25e73a0..672db7f 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -67,10 +67,7 @@ HPP_UTIL_LOCAL void makeDirectory(const std::string& filename) { using namespace boost::filesystem; path pathname(filename); - // FIXME: Boost 1.34.1 does not support the non-obsolete - // equivalent of branch_path, parent_path, so bear with - // it for now. - std::string dirname = pathname.branch_path().string(); + std::string dirname = pathname.parent_path().string(); boost::filesystem::create_directories(dirname); } diff --git a/src/factories/sequence.cc b/src/factories/sequence.cc index db8b402..9f7ee22 100644 --- a/src/factories/sequence.cc +++ b/src/factories/sequence.cc @@ -45,7 +45,7 @@ namespace { #define TIXML_SSCANF sscanf #endif -struct StringIsEmpty : public std::unary_function { +struct StringIsEmpty { bool operator()(std::string s) const { return s.empty(); } };