diff --git a/src/parallel/include/timpi/standard_type.h b/src/parallel/include/timpi/standard_type.h index 05eed45..d6c2ddc 100644 --- a/src/parallel/include/timpi/standard_type.h +++ b/src/parallel/include/timpi/standard_type.h @@ -172,14 +172,12 @@ TIMPI_STANDARD_TYPE(long double,MPI_LONG_DOUBLE); { public: explicit - StandardType(const Real * = nullptr) { + StandardType(const Real * = nullptr) : DataType() { timpi_call_mpi(MPI_Type_contiguous(2, MPI_DOUBLE, &_datatype)); this->commit(); } - StandardType(const StandardType & t) - : DataType() - { + StandardType(const StandardType & t) : DataType() { timpi_call_mpi (MPI_Type_dup (t._datatype, &_datatype)); } @@ -204,7 +202,9 @@ class StandardType, { public: explicit - StandardType(const std::pair * example = nullptr) { + StandardType(const std::pair * example = nullptr) + : DataType() + { // We need an example for MPI_Address to use static const std::pair p; if (!example) @@ -256,6 +256,7 @@ class StandardType, } StandardType(const StandardType> & timpi_mpi_var(t)) + : DataType() { timpi_call_mpi (MPI_Type_dup (t._datatype, &_datatype));