Skip to content

Commit 47ad9ef

Browse files
committed
Fix functions order check in Task class dtor
1 parent a1fa76b commit 47ad9ef

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

modules/core/task/src/task.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,9 @@ 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+
throw std::runtime_error("ORDER OF FUCTIONS IS NOT RIGHT: Task functions order is invalid.");
80+
}
81+
functions_order_.clear();
82+
}

0 commit comments

Comments
 (0)