------- Comment #2 from bartoschek at gmx dot de  2008-12-10 00:03 -------
Could you point me to the part in the standard that forbids this?

If this is really forbidden an additional level of indirection should help.
Just call an swap_impl(a, b)  from std::swap and define swap_impl for
std::pair.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38466

Reply via email to