diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 185e110a..f78d8524 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -52,7 +52,7 @@ public: nonstd::optional rv; _cache.visit(key_, - [](Map::value_type &v_) + [&](Map::value_type &v_) { rv = v_; });