From 214d29b59b56824037e2d7bb2ad3a169488b2573 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 2 Mar 2005 00:42:05 +0000 Subject: [PATCH] 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 --- deal.II/doc/news/changes.html | 7 +++++++ deal.II/lac/include/lac/sparse_matrix.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- 2.39.5