diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 2b7c4981..4aace38d 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -62,8 +62,8 @@ public: { nonstd::optional rv; - _cache.visit(key_, - [&](Map::value_type &v_) + _cache.cvisit(key_, + [&](Map::value_type const &v_) { rv = v_.second; });