From cda94881ca51dbd7187ef5a611b7156740a19b5d Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 22 Feb 2024 00:22:30 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 51ab3dfc..185e110a 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -49,9 +49,13 @@ public: nonstd::optional find(std::string const key_) { - std::string rv; + nonstd::optional rv; - _cache.visit(key_,[](Map::value_type &v){}); + _cache.visit(key_, + [](Map::value_type &v_) + { + rv = v_; + }); return rv; }