Skip to content

Commit

Permalink
trying with pre-c++20 somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Nov 30, 2023
1 parent 5d8186b commit 365b1c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/tls/tls_session_manager_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <botan/internal/stl_util.h>

#include <algorithm>
#include <ranges>

namespace Botan::TLS {

Expand Down Expand Up @@ -68,7 +67,7 @@ std::vector<Session_with_Handle> Session_Manager_In_Memory::find_some(const Serv
lock_guard_type<recursive_mutex_type> lk(mutex());

std::vector<Session_with_Handle> 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;
});
Expand Down

0 comments on commit 365b1c1

Please sign in to comment.