From 1a7e021f9df32f08016f1df07588f39e8ca57c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Mon, 29 Apr 2024 15:43:40 +0200 Subject: [PATCH] boost: Fix deprecated use of filesystem::basename, use filesystem::path instead --- NEWS | 1 + test/regress/standalone/SFCGAL/StraightSkeletonTest.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 6115b8eb..6629701d 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ 1.5.2 (2024-03-XX): * Expose as_vtk to C Api (Loïc Bartoletti) + * Fix build with boost 1.85 (Dirk Stöcker, Fixes #266) 1.5.1 (2023-12-21): * Rewrite and fix visibility algorithm (Loïc Bartoletti) * Apply clang-tidy fixes (Loïc Bartoletti) diff --git a/test/regress/standalone/SFCGAL/StraightSkeletonTest.cpp b/test/regress/standalone/SFCGAL/StraightSkeletonTest.cpp index b80140b2..9dc32b54 100644 --- a/test/regress/standalone/SFCGAL/StraightSkeletonTest.cpp +++ b/test/regress/standalone/SFCGAL/StraightSkeletonTest.cpp @@ -1,4 +1,4 @@ -/** + /** * SFCGAL * * Copyright (C) 2012-2013 Oslandia @@ -60,7 +60,7 @@ runTest(const boost::filesystem::path::string_type &filename) BOOST_REQUIRE(ifs.good()); std::string line; - std::string const lbl_base = boost::filesystem::basename(filename); + std::string const lbl_base = boost::filesystem::path(filename).filename().string(); int lineno = 0; while (std::getline(ifs, line)) {