MSVC2013's standard library is too broken to understand this pattern.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202971
91177308-0d34-0410-b5e6-
96231b3b80d8
void MultilibSet::filterInPlace(const MultilibSet::FilterCallback &F,
multilib_list &Ms) {
- Ms.erase(std::remove_if(Ms.begin(), Ms.end(), std::cref(F)), Ms.end());
+ Ms.erase(std::remove_if(Ms.begin(), Ms.end(),
+ [&F](const Multilib &M) { return F(M); }),
+ Ms.end());
}
raw_ostream &clang::driver::operator<<(raw_ostream &OS, const MultilibSet &MS) {