diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-11-07 09:01:26 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-11-07 09:01:26 +0100 |
commit | 8fe609311d696189d443f42877a09fdf931220b4 (patch) | |
tree | d029832a315970f60a0249614032cc6ff2064c53 /Eigen/src/Eigenvalues | |
parent | 8edc9647345445c2b3e8b9ff1c70c625f43755c6 (diff) |
Move internal::swap to numext to fix ambiguous call with std::swap
Diffstat (limited to 'Eigen/src/Eigenvalues')
-rw-r--r-- | Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h b/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h index be2f7b452..0c3425069 100644 --- a/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +++ b/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h @@ -606,12 +606,12 @@ template<typename SolverType> struct direct_selfadjoint_eigenvalues<SolverType,3 // Sort in increasing order. if (roots(0) >= roots(1)) - internal::swap(roots(0),roots(1)); + numext::swap(roots(0),roots(1)); if (roots(1) >= roots(2)) { - internal::swap(roots(1),roots(2)); + numext::swap(roots(1),roots(2)); if (roots(0) >= roots(1)) - internal::swap(roots(0),roots(1)); + numext::swap(roots(0),roots(1)); } } |