From 29479d78d9d8f2526c15a8c4fc93fa9309bc456e Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 22 Feb 2024 00:12:03 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 66aba312..e695fceb 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -50,12 +50,11 @@ public: find(char const *key_) { nonstd::optional - std::string rv ; auto func = [&](const auto &v) { - rv = &v; + rv = v; }; _cache.visit(key_,func);