[Bug libstdc++/38466] std::swap does not use std::swap for the components of a std::pair
bartoschek at gmx dot de
gcc-bugzilla@gcc.gnu.org
Wed Dec 10 00:04:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list