diff --git a/src/lib/tls/tls_session_manager_memory.cpp b/src/lib/tls/tls_session_manager_memory.cpp index a9cb797c2d2..e0f9c5246c6 100644 --- a/src/lib/tls/tls_session_manager_memory.cpp +++ b/src/lib/tls/tls_session_manager_memory.cpp @@ -12,7 +12,6 @@ #include #include -#include namespace Botan::TLS { @@ -68,7 +67,7 @@ std::vector Session_Manager_In_Memory::find_some(const Serv lock_guard_type lk(mutex()); std::vector found_sessions; - auto t = m_sessions | std::views::values; + auto t = m_sessions | std::views::transform([](const auto& e) { return e.second; }); std::copy_if(t.begin(), t.end(), std::back_inserter(found_sessions), [&](const auto& e) { return e.session.server_info() == info; });