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);