The following code snippet fails to compile under Visual C++ 2010:template<typename T>std::vector<T>fun(const std::vector<T>& a, const std::vector<T>& b){ std::vector<T> nrv; std::unordered_set<T> s(b.begin(), b.end()); // msvc10 fails to find `remove_copy_if', where it should. remove_copy_if(a.begin(), a.end(), back_inserter(nrv), [&](T v) { return s.find(v) != s.end(); }); return nrv;}
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...