diff --git a/DRAMSys/library/src/common/TlmRecorder.cpp b/DRAMSys/library/src/common/TlmRecorder.cpp index de86598d..40877951 100644 --- a/DRAMSys/library/src/common/TlmRecorder.cpp +++ b/DRAMSys/library/src/common/TlmRecorder.cpp @@ -221,7 +221,9 @@ void TlmRecorder::terminateRemainingTransactions() { while (!currentTransactionsInSystem.empty()) { - auto transaction = currentTransactionsInSystem.begin(); + auto transaction = std::min_element(currentTransactionsInSystem.begin(), + currentTransactionsInSystem.end(), [](decltype(currentTransactionsInSystem)::value_type& l, + decltype(currentTransactionsInSystem)::value_type& r) -> bool {return l.second.id < r.second.id;}); std::cout << transaction->second.recordedPhases.front().name << std::endl; if (transaction->second.cmd == 'X') {