Skip to content

Commit 84cc083

Browse files
committed
Use std::abort instead of std::exit for termination
Replaced std::exit with std::abort in the custom termination handler to better align with modern C++ practices and avoid the need for specific exit codes. Also removed a redundant self-include to clean up the header file.
1 parent 404f6f4 commit 84cc083

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

modules/core/task/include/task.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include <string>
1414
#include <utility>
1515

16-
#include "core/task/include/task.hpp"
17-
1816
using namespace std::chrono;
1917

2018
namespace ppc::core {
@@ -30,7 +28,7 @@ class Task {
3028
auto custom_terminate = []() {
3129
std::cerr << "ORDER OF FUNCTIONS IS NOT RIGHT! \n"
3230
"Expected - \"Validation\", \"PreProcessing\", \"Run\", \"PostProcessing\" \n";
33-
std::exit(404);
31+
std::abort();
3432
};
3533
std::set_terminate(custom_terminate);
3634
functions_order_.clear();

0 commit comments

Comments
 (0)