diff options
author | 2008-01-10 20:45:35 +0000 | |
---|---|---|
committer | 2008-01-10 20:45:35 +0000 | |
commit | 45a4b61b5fd6dab699f75e62dcf891d3faaf8384 (patch) | |
tree | 2eb2a5343a2174283c3a1569a09cae2951c559ba /Eigen/src/Core/DiagonalCoeffs.h | |
parent | 209cf7c91f4276ca666509d2613ae0e71d4e76a8 (diff) |
switch to enums everywhere
Diffstat (limited to 'Eigen/src/Core/DiagonalCoeffs.h')
-rw-r--r-- | Eigen/src/Core/DiagonalCoeffs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Eigen/src/Core/DiagonalCoeffs.h b/Eigen/src/Core/DiagonalCoeffs.h index b3bc8c7fe..bd8ac2c8b 100644 --- a/Eigen/src/Core/DiagonalCoeffs.h +++ b/Eigen/src/Core/DiagonalCoeffs.h @@ -51,8 +51,10 @@ template<typename MatrixType> class DiagonalCoeffs EIGEN_INHERIT_ASSIGNMENT_OPERATORS(DiagonalCoeffs) private: - static const int RowsAtCompileTime = MatrixType::Traits::RowsAtCompileTime, - ColsAtCompileTime = 1; + enum { + RowsAtCompileTime = MatrixType::Traits::RowsAtCompileTime, + ColsAtCompileTime = 1 + }; const DiagonalCoeffs& _ref() const { return *this; } int _rows() const { return std::min(m_matrix.rows(), m_matrix.cols()); } |