From 3d7473e275ed118b1dfeef6dc36391e64586cf41 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 11 Mar 2024 20:55:46 -0500 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 48978156..89ed8eef 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -44,14 +44,14 @@ public: insert(std::string const &key_, std::string const &val_) { - while(_cache.size() > _max_size) - { - std::string key; - _cache.cvisit_while([&](Map::value_type const &v_) - { - key = v_.first; - return false; - }); + // while(_cache.size() > _max_size) + // { + // std::string key; + // _cache.cvisit_while([&](Map::value_type const &v_) + // { + // key = v_.first; + // return false; + // }); _cache.erase(key); }