From fcef811822c796b9591b629600c750bad43ab06e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 5 Mar 2014 11:38:18 +0000 Subject: [PATCH] [C++11] Replace trivial lambda with std::cref. llvm-svn: 202968 --- clang/lib/Driver/Multilib.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clang/lib/Driver/Multilib.cpp b/clang/lib/Driver/Multilib.cpp index 910e6383f28e..4d72b93e54ae 100644 --- a/clang/lib/Driver/Multilib.cpp +++ b/clang/lib/Driver/Multilib.cpp @@ -340,9 +340,7 @@ MultilibSet::filterCopy(const MultilibSet::FilterCallback &F, void MultilibSet::filterInPlace(const MultilibSet::FilterCallback &F, multilib_list &Ms) { - Ms.erase(std::remove_if(Ms.begin(), Ms.end(), - [&F](const Multilib &M) { return F(M); }), - Ms.end()); + Ms.erase(std::remove_if(Ms.begin(), Ms.end(), std::cref(F)), Ms.end()); } raw_ostream &clang::driver::operator<<(raw_ostream &OS, const MultilibSet &MS) {