Skip to content

Commit

Permalink
Merge pull request #149 from Lastique/feature/update_filesystem_usage
Browse files Browse the repository at this point in the history
Update Boost.Filesystem usage
  • Loading branch information
apolukhin authored Jan 27, 2024
2 parents 1fd3665 + e9e0b6c commit 3de5aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/terminate_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 += ' ';
Expand Down

0 comments on commit 3de5aea

Please sign in to comment.