From 13591eb6331d8686ad829fab6787b7dda2d9d3f8 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 21 Feb 2024 20:07:58 -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 dad7a5f9..fd89a4a0 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -43,7 +43,7 @@ public: insert(std::string const &key_, std::string &val_) { - if(_cache.size() > _max_size) + if(_cache.size() >= _max_size) _cache.erase(_cache.begin()); return &_cache.insert({key_,val_}).first->second; }