From 54a175a7e422a35cf9dcfd5a178e86ad4d77315c Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 15 Feb 2024 20:40:51 -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 ad15854c..172758f5 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -67,7 +67,7 @@ public: cleanup() { while(_cache.size() > _max_size) - _cache.erase((_cache.size() & 1) ? _cache.begin() : _cache.rbegin()); + _cache.erase(_cache.begin()); } void