forked from lix-project/lix
Fix clang compilation error
https://hydra.nixos.org/build/94332344 https://stackoverflow.com/questions/46114214/lambda-implicit-capture-fails-with-variable-declared-from-structured-binding
This commit is contained in:
parent
412684f9dc
commit
653c4e439b
|
@ -60,7 +60,8 @@ FlakeRef::FlakeRef(const std::string & uri_, bool allowRelative)
|
||||||
|
|
||||||
static std::regex subDirRegex2(subDirRegex, std::regex::ECMAScript);
|
static std::regex subDirRegex2(subDirRegex, std::regex::ECMAScript);
|
||||||
|
|
||||||
auto [uri, params] = splitUriAndParams(uri_);
|
auto [uri2, params] = splitUriAndParams(uri_);
|
||||||
|
std::string uri(uri2);
|
||||||
|
|
||||||
auto handleSubdir = [&](const std::string & name, const std::string & value) {
|
auto handleSubdir = [&](const std::string & name, const std::string & value) {
|
||||||
if (name == "dir") {
|
if (name == "dir") {
|
||||||
|
|
Loading…
Reference in a new issue