From 1cdb34c27e4d8bf7ea715ebb04636bf469211162 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 7 Jun 2004 14:49:10 +0000 Subject: [PATCH] Work around a problem where the MIPSpro compiler rightfully complained about a useless const keyword. git-svn-id: https://svn.dealii.org/trunk@9392 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/block_vector_base.h | 2 +- deal.II/lac/include/lac/petsc_vector_base.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/include/lac/block_vector_base.h b/deal.II/lac/include/lac/block_vector_base.h index 36e1921575..16b518b37c 100644 --- a/deal.II/lac/include/lac/block_vector_base.h +++ b/deal.II/lac/include/lac/block_vector_base.h @@ -671,7 +671,7 @@ class BlockVectorBase typedef internal::BlockVectorIterators::Iterator iterator; typedef internal::BlockVectorIterators::Iterator const_iterator; typedef typename BlockType::reference reference; - typedef const typename BlockType::reference const_reference; + typedef typename BlockType::const_reference const_reference; typedef std::size_t size_type; diff --git a/deal.II/lac/include/lac/petsc_vector_base.h b/deal.II/lac/include/lac/petsc_vector_base.h index 89d41f9961..eb638d1e02 100644 --- a/deal.II/lac/include/lac/petsc_vector_base.h +++ b/deal.II/lac/include/lac/petsc_vector_base.h @@ -216,6 +216,7 @@ namespace PETScWrappers typedef PetscScalar value_type; typedef size_t size_type; typedef internal::VectorReference reference; + typedef const internal::VectorReference const_reference; /** * Default constructor. It doesn't do -- 2.39.5