diff options
author | Graham Bennett <graham@grahambennett.org> | 2022-10-22 14:25:35 +0100 |
---|---|---|
committer | Graham Bennett <graham@grahambennett.org> | 2022-10-22 15:16:46 +0100 |
commit | 4563e803633d44ec57dfc4515f0c42c8855c018b (patch) | |
tree | b9230e47e2076befd918e733fc2d8dd426f18589 /src/libutil/args.cc | |
parent | c5fd34a14e2a271b66839b35f500caeae3368be2 (diff) |
Fix C++20 warnings
Diffstat (limited to 'src/libutil/args.cc')
-rw-r--r-- | src/libutil/args.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/args.cc b/src/libutil/args.cc index 753980fd4..2930913d6 100644 --- a/src/libutil/args.cc +++ b/src/libutil/args.cc @@ -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()) { |