From a00f478231c3ce267f80f486740718d5dc3e1302 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 20 Oct 2018 02:05:51 +0200 Subject: [PATCH] Use DEAL_II_MPI_CONST_CAST in another place --- include/deal.II/base/mpi.templates.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/deal.II/base/mpi.templates.h b/include/deal.II/base/mpi.templates.h index 4de4cc641d..d6628482d1 100644 --- a/include/deal.II/base/mpi.templates.h +++ b/include/deal.II/base/mpi.templates.h @@ -164,13 +164,7 @@ namespace Utilities # endif const int ierr = MPI_Allreduce(values != output ? - // TODO This const_cast is only needed for older - // (e.g., openMPI 1.6, released in 2012) - // implementations of MPI-2. It is not needed as - // of MPI-3 and we should remove it at some - // point in the future. - const_cast( - static_cast(values.data())) : + DEAL_II_MPI_CONST_CAST(values.data()) : MPI_IN_PLACE, static_cast(output.data()), static_cast(values.size()), -- 2.39.5