[LLVMbugs] [Bug 10248] compiling Poco with libc++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 2 08:05:08 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10248

Howard Hinnant <hhinnant at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Howard Hinnant <hhinnant at apple.com> 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.



More information about the llvm-bugs mailing list