From e9e0b6c3d450e407a83cba9395d15974088e09d9 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 27 Jan 2024 01:28:50 +0300 Subject: [PATCH] Updated Boost.Filesystem usage. Removed usage of Boost.Filesystem APIs that were deprecated and then removed. --- example/terminate_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/terminate_handler.cpp b/example/terminate_handler.cpp index 059f50e..c9336a5 100644 --- a/example/terminate_handler.cpp +++ b/example/terminate_handler.cpp @@ -94,7 +94,7 @@ inline void copy_and_run(const char* exec_name, char param, bool not_null) { std::cout << "Running with param " << param << std::endl; boost::filesystem::path command = exec_name; command = command.parent_path() / (command.stem().string() + param + command.extension().string()); - boost::filesystem::copy_file(exec_name, command, boost::filesystem::copy_option::overwrite_if_exists); + boost::filesystem::copy_file(exec_name, command, boost::filesystem::copy_options::overwrite_existing); boost::filesystem::path command_args = command; command_args += ' ';