From 7b3d70ad838774f8c7a1f18c72ee6357251c409b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 26 Feb 2015 00:16:13 +0100 Subject: [PATCH] Fix pair's swap to avoid unqualified swap calls. --- include/boost/container/detail/pair.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/boost/container/detail/pair.hpp b/include/boost/container/detail/pair.hpp index 051b2fe..6d31d3b 100644 --- a/include/boost/container/detail/pair.hpp +++ b/include/boost/container/detail/pair.hpp @@ -276,10 +276,7 @@ inline pair make_pair(T1 x, T2 y) template inline void swap(pair& x, pair& y) -{ - swap(x.first, y.first); - swap(x.second, y.second); -} +{ x.swap(y); } } //namespace container_detail { } //namespace container {