Have Print::apply_config() return true if any step was invalidated

This commit is contained in:
Alessandro Ranellucci
2014-06-12 09:29:26 +02:00
parent 5e80d7a388
commit 97231327e0
4 changed files with 23 additions and 9 deletions

View File

@@ -40,11 +40,13 @@ PrintState<StepClass>::invalidate(StepClass step)
}
template <class StepClass>
void
bool
PrintState<StepClass>::invalidate_all()
{
bool empty = this->_started.empty();
this->_started.clear();
this->_done.clear();
return !empty; // return true if we invalidated something
}
template class PrintState<PrintStep>;