Boost logo

Boost-Commit :

From: joseph.gauterin_at_[hidden]
Date: 2008-08-04 07:21:02


Author: joseph.gauterin
Date: 2008-08-04 07:21:02 EDT (Mon, 04 Aug 2008)
New Revision: 47967
URL: http://svn.boost.org/trac/boost/changeset/47967

Log:
Changed 'using std::swap;' to 'using namesapce std;' in swap_impl function to work around ADL bugs in some compilers.
Text files modified:
   trunk/boost/utility/swap.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/utility/swap.hpp
==============================================================================
--- trunk/boost/utility/swap.hpp (original)
+++ trunk/boost/utility/swap.hpp 2008-08-04 07:21:02 EDT (Mon, 04 Aug 2008)
@@ -20,7 +20,7 @@
   template<class T>
   void swap_impl(T& left, T& right)
   {
- using std::swap;//use std::swap if argument dependent lookup fails
+ using namespace std;//use std::swap if argument dependent lookup fails
     swap(left,right);
   }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk