Fix pair's swap to avoid unqualified swap calls.

This commit is contained in:
Ion Gaztañaga
2015-02-26 00:16:13 +01:00
parent 5ea8e24923
commit 7b3d70ad83

View File

@@ -276,10 +276,7 @@ inline pair<T1, T2> make_pair(T1 x, T2 y)
template <class T1, class T2>
inline void swap(pair<T1, T2>& x, pair<T1, T2>& y)
{
swap(x.first, y.first);
swap(x.second, y.second);
}
{ x.swap(y); }
} //namespace container_detail {
} //namespace container {