diff options
Diffstat (limited to 'src/tools/tool-options.h')
-rw-r--r-- | src/tools/tool-options.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/tool-options.h b/src/tools/tool-options.h index 0ed0f27fb..f8278e950 100644 --- a/src/tools/tool-options.h +++ b/src/tools/tool-options.h @@ -155,7 +155,7 @@ struct ToolOptions : public Options { std::string("Enable ") + description, ToolOptionsCategory, Arguments::Zero, - [=](Options*, const std::string&) { + [this, feature](Options*, const std::string&) { enabledFeatures.set(feature, true); disabledFeatures.set(feature, false); }) @@ -165,7 +165,7 @@ struct ToolOptions : public Options { std::string("Disable ") + description, ToolOptionsCategory, Arguments::Zero, - [=](Options*, const std::string&) { + [this, feature](Options*, const std::string&) { enabledFeatures.set(feature, false); disabledFeatures.set(feature, true); }); |