http://llvm.org/bugs/show_bug.cgi?id=10248
Howard Hinnant <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Howard Hinnant <[email protected]> 2011-07-02 10:05:08 CDT --- The correct way to implement swap is to define it in your own namespace. I note that this project already does that: namespace Poco { namespace Data { inline void swap(Statement& s1, Statement& s2) { s1.swap(s2); } } } The correct way to call swap is: void test(Poco::Data::Statement& s1, Poco::Data::Statement& s2) { swap( s1, s2); } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
