From: Daniel Arndt Date: Mon, 8 Oct 2018 11:48:04 +0000 (+0200) Subject: Fix DEAL_II_MPI_CONST_CAST X-Git-Tag: v9.1.0-rc1~649^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb1022d106a89dc1d17765f615c106c239435881;p=dealii.git Fix DEAL_II_MPI_CONST_CAST --- 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