mirror of
https://github.com/boostorg/core.git
synced 2025-11-30 06:09:56 +01:00
Changed 'using std::swap;' to 'using namesapce std;' in swap_impl function to work around ADL bugs in some compilers.
[SVN r47967]
This commit is contained in:
committed by
Andrey Semashev
parent
19ddea375b
commit
f05e7b2785
@@ -20,7 +20,7 @@ namespace boost_swap_impl
|
|||||||
template<class T>
|
template<class T>
|
||||||
void swap_impl(T& left, T& right)
|
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);
|
swap(left,right);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user