Skip to content
Snippets Groups Projects
Commit 9a99bb9c authored by Oliver Sander's avatar Oliver Sander
Browse files

use get() instead of operator->

[[Imported from SVN: r5750]]
parent 2fe506b5
No related branches found
No related tags found
No related merge requests found
......@@ -35,8 +35,8 @@ namespace Dune
if (!type)
{
type = shared_ptr<MPI_Datatype>(new MPI_Datatype);
MPI_Type_contiguous(sizeof(T),MPI_BYTE,type.operator->());
MPI_Type_commit(type.operator->());
MPI_Type_contiguous(sizeof(T),MPI_BYTE,type.get());
MPI_Type_commit(type.get());
}
return *type;
}
......@@ -89,7 +89,7 @@ namespace Dune
if (!op)
{
op = shared_ptr<MPI_Op>(new MPI_Op);
MPI_Op_create((void (*)(void*, void*, int*, MPI_Datatype*))&operation,true,op.operator->());
MPI_Op_create((void (*)(void*, void*, int*, MPI_Datatype*))&operation,true,op.get());
}
return *op;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment