mirror of https://github.com/oxen-io/lokinet
use std::make_optional for backwards compat on older toolchains
This commit is contained in:
parent
2122463d98
commit
5c512601bf
|
@ -58,9 +58,7 @@ namespace llarp
|
|||
{
|
||||
if (EnsurePrivateFile(pathname))
|
||||
return {};
|
||||
|
||||
std::string f = pathname.string();
|
||||
return T{pathname, mode};
|
||||
return std::make_optional<T>(pathname, mode);
|
||||
}
|
||||
|
||||
using PathVisitor = std::function<bool(const fs::path&)>;
|
||||
|
|
Loading…
Reference in New Issue