diff --git a/storage/cacheRowSpan.cpp b/storage/cacheRowSpan.cpp index 18ee0b18..34ab8c71 100644 --- a/storage/cacheRowSpan.cpp +++ b/storage/cacheRowSpan.cpp @@ -75,7 +75,7 @@ std::optional CacheRowSpan::find_empty() const noexcept size_t CacheRowSpan::find_victim(const timeval& now) const noexcept { const FlowRecord** victim = const_cast(m_begin) + m_count - 1; - auto it = std::find_if(m_begin, m_begin + m_count, [&](const FlowRecord* flow) { + auto it = std::find_if(m_begin, m_begin + m_count, [&](const FlowRecord*& flow) { if (!flow->is_in_ctt) { victim = &flow; }