We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-Wdeprecated-this-capture
1 parent 2d0326d commit a743057Copy full SHA for a743057
1 file changed
lib/pathmatch.cpp
@@ -33,7 +33,7 @@ PathMatch::PathMatch(std::vector<std::string> patterns, std::string basepath, Sy
33
34
bool PathMatch::match(const std::string &path, Filemode mode) const
35
{
36
- return std::any_of(mPatterns.cbegin(), mPatterns.cend(), [=] (const std::string &pattern) {
+ return std::any_of(mPatterns.cbegin(), mPatterns.cend(), [&] (const std::string &pattern) {
37
return match(pattern, path, mBasepath, mode, mSyntax);
38
});
39
}
0 commit comments