mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
policy_cache.hpp
This commit is contained in:
parent
5257905cee
commit
e52c4d9dc3
1 changed files with 4 additions and 2 deletions
|
|
@ -51,11 +51,13 @@ public:
|
|||
std::string*
|
||||
find(char const *key_)
|
||||
{
|
||||
std::string rv;
|
||||
std::string *rv ;
|
||||
|
||||
rv = nullptr;
|
||||
auto func =
|
||||
[&](const auto &v)
|
||||
{
|
||||
rv = v;
|
||||
rv = &v;
|
||||
};
|
||||
|
||||
_cache.visit(key_,func);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue