Browse Source

policy_cache.hpp

getattr-cache
Antonio SJ Musumeci 9 months ago
parent
commit
e52c4d9dc3
  1. 6
      src/policy_cache.hpp

6
src/policy_cache.hpp

@ -51,11 +51,13 @@ public:
std::string* std::string*
find(char const *key_) find(char const *key_)
{ {
std::string rv;
std::string *rv ;
rv = nullptr;
auto func = auto func =
[&](const auto &v) [&](const auto &v)
{ {
rv = v;
rv = &v;
}; };
_cache.visit(key_,func); _cache.visit(key_,func);

Loading…
Cancel
Save