Skip to content

Commit 018271b

Browse files
committed
Fix functions order check in Task class dtor
1 parent a1fa76b commit 018271b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

modules/core/task/src/task.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,10 @@ void ppc::core::Task::InternalOrderTest(const std::string& str) {
7474
}
7575
}
7676

77-
ppc::core::Task::~Task() { functions_order_.clear(); }
77+
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

Comments
 (0)