From: Wolfgang Bangerth Date: Thu, 3 Jun 2004 22:38:40 +0000 (+0000) Subject: Don't declare the same typedef twice. X-Git-Tag: v8.0.0~15079 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa8bed32eeecf0bc980790891fa2fc883bcda9bd;p=dealii.git Don't declare the same typedef twice. git-svn-id: https://svn.dealii.org/trunk@9380 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/block_vector_base.h b/deal.II/lac/include/lac/block_vector_base.h index 570ca3c392..36e1921575 100644 --- a/deal.II/lac/include/lac/block_vector_base.h +++ b/deal.II/lac/include/lac/block_vector_base.h @@ -230,6 +230,19 @@ namespace internal typedef Iterator InverseConstnessIterator; public: + /** + * Type of the number this + * iterator points + * to. Depending on the value + * of the second template + * parameter, this is either a + * constant or non-const + * number. + */ + typedef + typename Types::value_type + value_type; + /** * Declare some typedefs which * are standard for iterators @@ -239,7 +252,6 @@ namespace internal * they work on. */ typedef std::random_access_iterator_tag iterator_type; - typedef typename Types::value_type value_type; typedef ptrdiff_t difference_type; typedef typename BlockVectorType::reference reference; typedef value_type *pointer; @@ -259,19 +271,6 @@ namespace internal typename Types::BlockVector BlockVector; - /** - * Type of the number this - * iterator points - * to. Depending on the value - * of the second template - * parameter, this is either a - * constant or non-const - * number. - */ - typedef - typename Types::value_type - value_type; - /** * Construct an iterator from * a vector to which we point