Browse Source

policy_cache.hpp

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

13
src/policy_cache.hpp

@ -51,13 +51,14 @@ public:
std::string*
find(char const *key_)
{
Map::const_iterator i;
i = _cache.find(key_);
if(i == _cache.end())
return NULL;
std::string rv;
auto func =
[&](const auto &v)
{
rv = v;
};
return &i->second;
_cache.visit(key_, []
}
void

Loading…
Cancel
Save