From ac99b93d923ad5fb1e73dd894ae4a98a4095900c Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 4 Aug 2025 16:36:46 +0100 Subject: [PATCH] This fixes the compilation, but does it the same? --- CGAL_ImageIO/include/CGAL/SEP_to_ImageIO.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/CGAL_ImageIO/include/CGAL/SEP_to_ImageIO.h b/CGAL_ImageIO/include/CGAL/SEP_to_ImageIO.h index 97bd4502006..9dace36edc8 100644 --- a/CGAL_ImageIO/include/CGAL/SEP_to_ImageIO.h +++ b/CGAL_ImageIO/include/CGAL/SEP_to_ImageIO.h @@ -20,13 +20,7 @@ #include #include -#include -#include - -#ifndef BOOST_FILESYSTEM_VERSION -// That macro was not defined in previous releases of Boost. -# define BOOST_FILESYSTEM_VERSION 2 -#endif +#include #include @@ -60,15 +54,11 @@ public: } display_information(fileName, std::cout); - boost::filesystem::path headerFile(fileName); - boost::filesystem::path dataFile(string_field("in")); -#if BOOST_FILESYSTEM_VERSION == 2 - dataFile = boost::filesystem::complete(dataFile, - boost::filesystem::complete(headerFile.parent_path())); -#else - dataFile = boost::filesystem::absolute(dataFile, - boost::filesystem::absolute(headerFile.parent_path())); -#endif + std::filesystem::path headerFile(fileName); + std::filesystem::path dataFile(string_field("in")); + + dataFile = std::filesystem::absolute(dataFile); +# if(!load_data(dataFile.string())) { return; err_msg = "Invalid data file \"";