From bb85dc317184da253eff51d1df5b5987aeb7acfa Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 22 Feb 2024 18:17:54 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index fe6f629f..e01466d6 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -43,7 +43,7 @@ public: { _cache.visit_while([&](Map::value_type &v_) { - _cache.erase(v_); + _cache.erase(v_.first); return (_cache.size() > _max_size); });