We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1fa76b commit 018271bCopy full SHA for 018271b
1 file changed
modules/core/task/src/task.cpp
@@ -74,4 +74,10 @@ void ppc::core::Task::InternalOrderTest(const std::string& str) {
74
}
75
76
77
-ppc::core::Task::~Task() { functions_order_.clear(); }
+ppc::core::Task::~Task() {
78
+ if (functions_order_ != right_functions_order_) {
79
+ std::cerr << "ORDER OF FUCTIONS IS NOT RIGHT: Task functions order is invalid." << std::endl;
80
+ std::terminate();
81
+ }
82
+ functions_order_.clear();
83
+}
0 commit comments