From 8624cecb411e2fe62a12f0e8a9ed8401746cc8ef Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Mon, 16 Nov 2009 14:36:20 +0000 Subject: [PATCH] Explicite conversion to pointer needed! (How can this ever have worked since the shared_ptr change?) [[Imported from SVN: r5713]] --- dune/common/mpicollectivecommunication.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/common/mpicollectivecommunication.hh b/dune/common/mpicollectivecommunication.hh index dba0b6fd3..fbd5faa04 100644 --- a/dune/common/mpicollectivecommunication.hh +++ b/dune/common/mpicollectivecommunication.hh @@ -47,7 +47,7 @@ namespace Dune }; template<typename T> - shared_ptr<MPI_Datatype> Generic_MPI_Datatype<T>::type = shared_ptr<MPI_Datatype>(0); + shared_ptr<MPI_Datatype> Generic_MPI_Datatype<T>::type = shared_ptr<MPI_Datatype>(static_cast<MPI_Datatype*>(0)); // A Macro for defining traits for the primitive data types #define ComposeMPITraits(p,m) \ @@ -111,7 +111,7 @@ namespace Dune template<typename Type, typename BinaryFunction> - shared_ptr<MPI_Op> Generic_MPI_Op<Type,BinaryFunction>::op = shared_ptr<MPI_Op>(0); + shared_ptr<MPI_Op> Generic_MPI_Op<Type,BinaryFunction>::op = shared_ptr<MPI_Op>(static_cast<MPI_Op*>(0)); #define ComposeMPIOp(type,func,op) \ template<> \ -- GitLab