maxminSystem_->solve_fun(maxminSystem_);
double min = -1;
- for (auto it(getRunningActionSet()->begin()), itend(getRunningActionSet()->end()); it != itend ; ++it) {
+
+ for (auto it(getRunningActionSet()->begin()); it != getRunningActionSet()->end(); ++it) {
Action *action = &*it;
double value = lmm_variable_getvalue(action->getVariable());
if (value > 0) {
void Action::heapInsert(heap_type& heap, double key, enum heap_action_type hat)
{
hat_ = hat;
- heapHandle_ = heap.emplace(key, this);
+ heapHandle_ = heap.emplace(std::make_pair(key, this));
}
void Action::heapRemove(heap_type& heap)
if (heapHandle_) {
heap.update(*heapHandle_, std::make_pair(key, this));
} else {
- heapHandle_ = heap.emplace(key, this);
+ heapHandle_ = heap.emplace(std::make_pair(key, this));
}
}