File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
#include < algorithm>
4
4
#include < chrono>
5
5
#include < cstddef>
6
+ #include < cstdlib>
6
7
#include < exception>
7
8
#include < functional>
8
9
#include < iomanip>
15
16
using namespace std ::chrono;
16
17
17
18
ppc::core::Task::Task (StateOfTesting state_of_testing) : state_of_testing_(state_of_testing) {
19
+ auto custom_terminate = []() {
20
+ std::cerr << " ORDER OF FUNCTIONS IS NOT RIGHT! \n "
21
+ " Expected - \" Validation\" , \" PreProcessing\" , \" Run\" , \" PostProcessing\" \n " ;
22
+ std::exit (404 );
23
+ };
24
+ std::set_terminate (custom_terminate);
18
25
functions_order_.clear ();
19
26
}
20
27
@@ -86,13 +93,6 @@ bool ppc::core::Task::IsFullPipelineStage() {
86
93
}
87
94
88
95
ppc::core::Task::~Task () {
89
- auto custom_terminate = []() {
90
- std::cerr << " ORDER OF FUNCTIONS IS NOT RIGHT! \n "
91
- " Expected - \" Validation\" , \" PreProcessing\" , \" Run\" , \" PostProcessing\" \n " ;
92
- std::exit (404 );
93
- };
94
- std::set_terminate (custom_terminate);
95
-
96
96
if (!functions_order_.empty () || !was_worked_) {
97
97
std::terminate ();
98
98
} else {
You can’t perform that action at this time.
0 commit comments