-int Coll_reduce_binomial::reduce(void *sendbuf, void *recvbuf, int count,
+int Coll_reduce_binomial::reduce(const void *sendbuf, void *recvbuf, int count,
MPI_Datatype datatype, MPI_Op op, int root,
MPI_Comm comm)
{
MPI_Datatype datatype, MPI_Op op, int root,
MPI_Comm comm)
{
datatype->extent(&true_lb, &true_extent);
/* adjust for potential negative lower bound in datatype */
datatype->extent(&true_lb, &true_extent);
/* adjust for potential negative lower bound in datatype */
/* If I'm not the root, then my recvbuf may not be valid, therefore
I have to allocate a temporary one */
/* If I'm not the root, then my recvbuf may not be valid, therefore
I have to allocate a temporary one */