From: Bruno Turcksin Date: Fri, 31 Jan 2014 01:32:15 +0000 (+0000) Subject: Add a const in sparse_matrix.h and an include in sparsity_tools.cc to help Visual... X-Git-Tag: v8.2.0-rc1~931 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99b25438834150b81ec0df30e60385b1bbddd838;p=dealii.git Add a const in sparse_matrix.h and an include in sparsity_tools.cc to help Visual Studio. git-svn-id: https://svn.dealii.org/trunk@32351 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/chunk_sparse_matrix.h b/deal.II/include/deal.II/lac/chunk_sparse_matrix.h index f44a0318d0..10d3831d8c 100644 --- a/deal.II/include/deal.II/lac/chunk_sparse_matrix.h +++ b/deal.II/include/deal.II/lac/chunk_sparse_matrix.h @@ -118,7 +118,7 @@ namespace ChunkSparseMatrixIterators * Return a reference to the matrix into which this accessor points. Note * that in the present case, this is a constant reference. */ - MatrixType &get_matrix () const; + const MatrixType &get_matrix () const; private: /** @@ -1662,7 +1662,7 @@ namespace ChunkSparseMatrixIterators template inline - typename Accessor::MatrixType & + const typename Accessor::MatrixType & Accessor::get_matrix () const { return *matrix; diff --git a/deal.II/source/lac/sparsity_tools.cc b/deal.II/source/lac/sparsity_tools.cc index d5f08ee540..10bac030c3 100644 --- a/deal.II/source/lac/sparsity_tools.cc +++ b/deal.II/source/lac/sparsity_tools.cc @@ -21,6 +21,7 @@ #include #include +#include #ifdef DEAL_II_WITH_MPI #include