Don't depend on C++17 features to clear the queue

master
Webster Sheets 2020-03-28 13:58:34 -04:00
parent fee469c6fd
commit 7d70c7f75f
1 changed files with 2 additions and 3 deletions

View File

@ -88,9 +88,8 @@ void Application::EndLifecycle()
void Application::ClearQueuedLifecycles()
{
// std::queue doesn't provide a clear() method
// so simply invoke the destructor by reinitializing the queue
m_queuedLifecycles = {};
while (m_queuedLifecycles.size())
m_queuedLifecycles.pop();
}
void Application::Run()