From: Matthias Maier Date: Tue, 5 May 2015 19:59:50 +0000 (+0200) Subject: Use PointerComparison::equal X-Git-Tag: v8.3.0-rc1~179^2~7 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121286c67978a98064327320d79b9bd524c52094;p=dealii.git Use PointerComparison::equal --- 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) {