diff --git a/example/terminate_handler.cpp b/example/terminate_handler.cpp index 6011a2c..ad222a6 100644 --- a/example/terminate_handler.cpp +++ b/example/terminate_handler.cpp @@ -91,7 +91,8 @@ inline void copy_and_run(const char* exec_name, char param, bool not_null) { const int ret = std::system(command_args.string().c_str()); std::cout << "End Running with param " << param << "; ret code is " << ret << std::endl; - boost::filesystem::remove(command); + boost::system::error_code ignore; + boost::filesystem::remove(command, ignore); if (not_null && !ret) { std::exit(97); } else if (!not_null && ret) {