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