From b388c6699a867ed8e91ee5782187101d95da9f2d Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 22 Feb 2024 18:12:23 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 4815aa04..4b76858e 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -41,7 +41,10 @@ public: insert(std::string const &key_, std::string &val_) { - auto i = std::begin(_cache); + _cache.visit_while([&](Map::value_type &v_) + { + return false; + }); _cache.insert_or_assign(key_,val_); }