diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-06-03 21:51:06 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-06-03 21:51:06 +0200 |
commit | 653c4e439bbd7649f7e508ed56e54e8d78b5e777 (patch) | |
tree | 5a7e8f6aacf238ee5c5c0cb0befe462927825545 | |
parent | 412684f9dca4e6b8100c3c5e95bb92514d96fa57 (diff) |
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
-rw-r--r-- | src/libexpr/primops/flakeref.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/primops/flakeref.cc b/src/libexpr/primops/flakeref.cc index 6c90c3b64..24af09124 100644 --- a/src/libexpr/primops/flakeref.cc +++ b/src/libexpr/primops/flakeref.cc @@ -60,7 +60,8 @@ FlakeRef::FlakeRef(const std::string & uri_, bool allowRelative) 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) { if (name == "dir") { |