From 121286c67978a98064327320d79b9bd524c52094 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 5 May 2015 21:59:50 +0200 Subject: [PATCH] Use PointerComparison::equal --- include/deal.II/lac/linear_operator.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/deal.II/lac/linear_operator.h b/include/deal.II/lac/linear_operator.h index 54654eca14..66f4e6d9e8 100644 --- a/include/deal.II/lac/linear_operator.h +++ b/include/deal.II/lac/linear_operator.h @@ -815,7 +815,7 @@ namespace { op.vmult = [&matrix](Range &v, const Domain &u) { - if (static_cast(&v) == static_cast(&u)) + if (PointerComparison::equal(&v, &u)) { // If v and u are the same memory location use intermediate storage apply_with_intermediate_storage([&matrix](Range &b, const Domain &a) @@ -842,7 +842,7 @@ namespace op.Tvmult = [&matrix](Domain &v, const Range &u) { - if (static_cast(&v) == static_cast(&u)) + if (PointerComparison::equal(&v, &u)) { // If v and u are the same memory location use intermediate storage apply_with_intermediate_storage([&matrix](Domain &b, const Range &a) @@ -888,7 +888,7 @@ namespace op.vmult_add = [&matrix](Range &v, const Domain &u) { - if (static_cast(&v) == static_cast(&u)) + if (PointerComparison::equal(&v, &u)) { apply_with_intermediate_storage([&matrix](Range &b, const Domain &a) { @@ -904,7 +904,7 @@ namespace op.Tvmult_add = [&matrix](Domain &v, const Range &u) { - if (static_cast(&v) == static_cast(&u)) + if (PointerComparison::equal(&v, &u)) { apply_with_intermediate_storage([&matrix](Domain &b, const Range &a) { -- 2.39.5