]> git.tdb.fi Git - libs/math.git/blobdiff - source/linal/matrix.h
Don't qualify potentially overloaded functions with the std namespace
[libs/math.git] / source / linal / matrix.h
index 83a64f50dd767ff1497804378be48160e8691ed0..6c04454296e51ae2162e0534f1def87fa379afac 100644 (file)
@@ -189,8 +189,9 @@ inline bool operator==(const Matrix<T, M, N> &a, const Matrix<T, M, N> &b)
 template<typename T, unsigned M, unsigned N>
 inline Matrix<T, M, N> &Matrix<T, M, N>::exchange_rows(unsigned i, unsigned j)
 {
+       using std::swap;
        for(unsigned k=0; k<N; ++k)
-               std::swap(element(i, k), element(j, k));
+               swap(element(i, k), element(j, k));
        return *this;
 }