]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't declare the same typedef twice.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Jun 2004 22:38:40 +0000 (22:38 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Jun 2004 22:38:40 +0000 (22:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@9380 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_vector_base.h

index 570ca3c392ae0d227751ccb0b4e8fdec2c0a2482..36e1921575b61b9e6dc9c39f1f80387a551030a1 100644 (file)
@@ -230,6 +230,19 @@ namespace internal
         typedef Iterator<BlockVectorType,!constness> 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<BlockVectorType,constness>::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<BlockVectorType,constness>::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<BlockVectorType,constness>::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<BlockVectorType,constness>::value_type
-        value_type;
-       
                                          /**
                                           * Construct an iterator from
                                           * a vector to which we point

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.