From: Wolfgang Bangerth
Date: Wed, 2 Mar 2005 00:42:05 +0000 (+0000)
Subject: Fix a compilation problem with one member variable being private and inaccessible.
X-Git-Tag: v8.0.0~14568
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=214d29b59b56824037e2d7bb2ad3a169488b2573;p=dealii.git
Fix a compilation problem with one member variable being private and inaccessible.
git-svn-id: https://svn.dealii.org/trunk@9940 0785d39b-7218-0410-832d-ea1e28bc413d
---
diff --git a/deal.II/doc/news/changes.html b/deal.II/doc/news/changes.html
index 78cba7719d..e2d1595b96 100644
--- a/deal.II/doc/news/changes.html
+++ b/deal.II/doc/news/changes.html
@@ -72,6 +72,13 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
(WB, 2005/03/01)
+
+ Fixed: The SparseMatrix
iterators could not be compared
+ using operator <
: the compiler complained that a
+ private member was accessed. This is now fixed.
+
+ (WB, 2005/03/01)
+
diff --git a/deal.II/lac/include/lac/sparse_matrix.h b/deal.II/lac/include/lac/sparse_matrix.h
index c864f4ffbf..39d8546005 100644
--- a/deal.II/lac/include/lac/sparse_matrix.h
+++ b/deal.II/lac/include/lac/sparse_matrix.h
@@ -2174,7 +2174,7 @@ namespace internals
Iterator::
operator < (const Iterator& other) const
{
- Assert (accessor.matrix == other.accessor.matrix,
+ Assert (&accessor.get_matrix() == &other.accessor.get_matrix(),
ExcInternalError());
return (accessor < other.accessor);