mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
Fix C++20 warnings
This commit is contained in:
parent
c5fd34a14e
commit
4563e80363
6 changed files with 18 additions and 14 deletions
|
@ -324,7 +324,7 @@ MultiCommand::MultiCommand(const Commands & commands_)
|
|||
expectArgs({
|
||||
.label = "subcommand",
|
||||
.optional = true,
|
||||
.handler = {[=](std::string s) {
|
||||
.handler = {[=,this](std::string s) {
|
||||
assert(!command);
|
||||
auto i = commands.find(s);
|
||||
if (i == commands.end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue