From bb1022d106a89dc1d17765f615c106c239435881 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 8 Oct 2018 13:48:04 +0200 Subject: [PATCH] Fix DEAL_II_MPI_CONST_CAST --- include/deal.II/base/mpi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index 359208c7d1..386118ff55 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -49,7 +49,8 @@ using MPI_Op = int; -/** Helper macro to remove const from the pointer arguments to some MPI_* +/** + * Helper macro to remove const from the pointer arguments to some MPI_* * functions. * * This is needed as the input arguments of functions like MPI_Allgather() are @@ -70,10 +71,9 @@ using MPI_Op = int; # include -# define DEAL_II_MPI_CONST_CAST(expr) \ - const_cast< \ - std::remove_const::type>::type *>( \ - expr) +# define DEAL_II_MPI_CONST_CAST(expr) \ + const_cast::type>::type *>(expr) # endif #endif -- 2.39.5