------- Comment #3 from chris at bubblescope dot net  2008-12-10 12:23 -------
Sorry, I should have been clearer. the standard forbids this overload of swap
by not listing it, unlike most other standard library types, which is lists an
overload for.

Personally, I'd be happy to just add the overload, but it wouldn't surprise me
if it somehow broke someone's code, who had defined their own pair swap, or
incorrectly defined swap on one of the members of their pair, although I don't
have a good example on me. 

You can get pair swapping by the very heavy hammer of using a very recent
release and -std=g++0x


-- 


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

Reply via email to