]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a compilation problem with one member variable being private and inaccessible.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Mar 2005 00:42:05 +0000 (00:42 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Mar 2005 00:42:05 +0000 (00:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@9940 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.html
deal.II/lac/include/lac/sparse_matrix.h

index 78cba7719d22ada5e9cbe492acbfadbe487fc9bd..e2d1595b96868ee63d37b557751a2f2784c36173 100644 (file)
@@ -72,6 +72,13 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
        (WB, 2005/03/01)
        </p>
 
+  <li> <p>
+       Fixed: The <code>SparseMatrix</code> iterators could not be compared
+       using <code>operator &lt;</code>: the compiler complained that a
+       private member was accessed. This is now fixed.
+       <br> 
+       (WB, 2005/03/01)
+       </p>
 </ol>
 
 
index c864f4ffbf396ff96a05991679fb80c915887863..39d85460059ccbae6c949a27bb1cdffdf9c3d4bf 100644 (file)
@@ -2174,7 +2174,7 @@ namespace internals
     Iterator<number,Constness>::
     operator < (const Iterator& other) const
     {
-      Assert (accessor.matrix == other.accessor.matrix,
+      Assert (&accessor.get_matrix() == &other.accessor.get_matrix(),
               ExcInternalError());
       
       return (accessor < other.accessor);

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.