From c8b1123d9e823f8f62a7d84606c27e9456704d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= Date: Thu, 19 Jan 2023 19:11:05 +0100 Subject: [PATCH] core: Add support for Boost 1.81 --- src/core/io/writer/h5md_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/io/writer/h5md_core.cpp b/src/core/io/writer/h5md_core.cpp index bdd2041664b..1aec1030a39 100644 --- a/src/core/io/writer/h5md_core.cpp +++ b/src/core/io/writer/h5md_core.cpp @@ -57,9 +57,9 @@ static void backup_file(const std::string &from, const std::string &to) { * have gone wrong. */ boost::filesystem::path pfrom(from), pto(to); + auto constexpr option_fail_if_exists = boost::filesystem::copy_options::none; try { - boost::filesystem::copy_file( - pfrom, pto, boost::filesystem::copy_option::fail_if_exists); + boost::filesystem::copy_file(pfrom, pto, option_fail_if_exists); } catch (const boost::filesystem::filesystem_error &) { throw left_backupfile(); }