From: wolf Date: Thu, 3 Jun 2004 22:38:40 +0000 (+0000) Subject: Don't declare the same typedef twice. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a8645a7f9209a5a461e0c91b4c494f02216e105;p=dealii-svn.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