// Copyright (C) 2007 Steven Watanabe // Joseph Gauterin // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // For more information, see http://www.boost.org #ifndef BOOST_UTILITY_SWAP_HPP #define BOOST_UTILITY_SWAP_HPP #include //for std::swap namespace boost_swap_impl { template void swap_impl(T& left, T& right) { using std::swap;//allows argument dependent lookup swap(left,right); } } namespace boost { namespace swap_adl_barrier { template void swap(T& left, T& right) { ::boost_swap_impl::swap_impl(left, right); } } using swap_adl_barrier::swap; } #endif