]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a const in sparse_matrix.h and an include in sparsity_tools.cc to help Visual...
authorturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Jan 2014 01:32:15 +0000 (01:32 +0000)
committerturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Jan 2014 01:32:15 +0000 (01:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@32351 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/chunk_sparse_matrix.h
deal.II/source/lac/sparsity_tools.cc

index f44a0318d096af93809c9337576e007708aa0623..10d3831d8c6f53d9d1b1d0da1e5d967f6409b3fa 100644 (file)
@@ -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 <typename number>
   inline
-  typename Accessor<number, true>::MatrixType &
+  const typename Accessor<number, true>::MatrixType &
   Accessor<number, true>::get_matrix () const
   {
     return *matrix;
index d5f08ee540ef21c0c0bc1c1277dbea117f18f41f..10bac030c31d65c9b4e9387d12448ae58198c789 100644 (file)
@@ -21,6 +21,7 @@
 #include <deal.II/lac/sparsity_tools.h>
 
 #include <algorithm>
+#include <functional>
 
 #ifdef DEAL_II_WITH_MPI
 #include <deal.II/base/utilities.h>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.