diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-10-07 18:29:28 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-10-07 18:29:28 +0200 |
commit | 57413492948d4c9dd6572f5bde6720b80122054a (patch) | |
tree | 22c8b070d5f929c32428e562505a27f704d978eb /Eigen/src/CholmodSupport/CholmodSupport.h | |
parent | 118b1113d9a4fa1a263597cdd699e237e5f2b4ac (diff) |
bug #882: fix various const-correctness issues with *View classes.
Diffstat (limited to 'Eigen/src/CholmodSupport/CholmodSupport.h')
-rw-r--r-- | Eigen/src/CholmodSupport/CholmodSupport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/CholmodSupport/CholmodSupport.h b/Eigen/src/CholmodSupport/CholmodSupport.h index 0c3b86dd2..3eadb83a0 100644 --- a/Eigen/src/CholmodSupport/CholmodSupport.h +++ b/Eigen/src/CholmodSupport/CholmodSupport.h @@ -105,7 +105,7 @@ const cholmod_sparse viewAsCholmod(const SparseMatrix<_Scalar,_Options,_Index>& /** Returns a view of the Eigen sparse matrix \a mat as Cholmod sparse matrix. * The data are not copied but shared. */ template<typename _Scalar, int _Options, typename _Index, unsigned int UpLo> -cholmod_sparse viewAsCholmod(const SparseSelfAdjointView<SparseMatrix<_Scalar,_Options,_Index>, UpLo>& mat) +cholmod_sparse viewAsCholmod(const SparseSelfAdjointView<const SparseMatrix<_Scalar,_Options,_Index>, UpLo>& mat) { cholmod_sparse res = viewAsCholmod(mat.matrix().const_cast_derived()); |