mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 06:24:26 +02:00
Fix pair's swap to avoid unqualified swap calls.
This commit is contained in:
@@ -276,10 +276,7 @@ inline pair<T1, T2> make_pair(T1 x, T2 y)
|
|||||||
|
|
||||||
template <class T1, class T2>
|
template <class T1, class T2>
|
||||||
inline void swap(pair<T1, T2>& x, pair<T1, T2>& y)
|
inline void swap(pair<T1, T2>& x, pair<T1, T2>& y)
|
||||||
{
|
{ x.swap(y); }
|
||||||
swap(x.first, y.first);
|
|
||||||
swap(x.second, y.second);
|
|
||||||
}
|
|
||||||
|
|
||||||
} //namespace container_detail {
|
} //namespace container_detail {
|
||||||
} //namespace container {
|
} //namespace container {
|
||||||
|
Reference in New Issue
Block a user