From 13c88bba53c6c62c164c2c0fcac43d828b0489f6 Mon Sep 17 00:00:00 2001 From: turcksin Date: Fri, 31 Jan 2014 01:32:15 +0000 Subject: [PATCH] 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 --- deal.II/include/deal.II/lac/chunk_sparse_matrix.h | 4 ++-- deal.II/source/lac/sparsity_tools.cc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5