From 601b843144abb92489aabec0da3ca477ade8b52a Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 22 Feb 2024 00:10:37 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index d191c946..c8b9a39c 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -42,9 +42,7 @@ public: insert(std::string const &key_, std::string &val_) { - if(_cache.size() >= _max_size) - _cache.erase(_cache.begin()); - return &_cache.insert({key_,val_}).first->second; + return NULL; } const