mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-18 14:52:49 +08:00
policy_cache.hpp
This commit is contained in:
parent
db734db764
commit
29479d78d9
|
@ -50,12 +50,11 @@ public:
|
||||||
find(char const *key_)
|
find(char const *key_)
|
||||||
{
|
{
|
||||||
nonstd::optional<std::string>
|
nonstd::optional<std::string>
|
||||||
std::string rv ;
|
|
||||||
|
|
||||||
auto func =
|
auto func =
|
||||||
[&](const auto &v)
|
[&](const auto &v)
|
||||||
{
|
{
|
||||||
rv = &v;
|
rv = v;
|
||||||
};
|
};
|
||||||
|
|
||||||
_cache.visit(key_,func);
|
_cache.visit(key_,func);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user