Argument Dependent Lookup Failure in Visual C++ 2010 - by hanji

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 714628 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 12/19/2011 7:10:43 AM
Access Restriction Public


The following code snippet fails to compile under Visual C++ 2010:

template<typename 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;
Sign in to post a comment.
Posted by Microsoft on 1/9/2012 at 4:38 PM
Hi: this issue has been fixed. The fix should show up in a future release of Visual C++.

Thank you for reporting the issue.

Jonathan Caves
Visual C++ Compiler Team
Posted by MS-Moderator10 [Feedback Moderator] on 12/20/2011 at 12:48 AM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 12/19/2011 at 7:42 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(