Commit ef039d4a authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

const correctness, fix build on 18.04

parent ce4e91b7
Pipeline #5600 passed with stage
in 4 minutes and 37 seconds
......@@ -621,12 +621,12 @@ namespace Eigen
EIGEN_INHERIT_ASSIGNMENT_OPERATORS(SubMatrix)
inline Scalar& coeffRef(Index row, Index col)
inline Scalar& coeffRef(Index row, Index col) const
{
return MemoryBase::m_matrix.const_cast_derived().coeffRef(this->rowIndex(row), this->colIndex(col));
}
inline Scalar& coeffRef(Index index)
inline Scalar& coeffRef(Index index) const
{
return MemoryBase::m_matrix.const_cast_derived()
.coeffRef(ei_submatrix_index_helper<MatrixType, PermutationType>::index(this->rowIndex(index), this->colIndex(index)));
......@@ -830,4 +830,3 @@ namespace Eigen
} // namespace soth
#endif // __SOTH_SUB_MATRIX_H__
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment