Skip to content

Commit

Permalink
Explicitly instantiate DataType superclass for tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Oct 29, 2020
1 parent 7fbe63d commit 5b7e0dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parallel/include/timpi/standard_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ class StandardType<std::tuple<Types...>> : public DataType
{
public:
explicit
StandardType(const std::tuple<Types...> * example = nullptr) {
StandardType(const std::tuple<Types...> * example = nullptr)
: DataType()
{
// We need an example for MPI_Address to use
static const std::tuple<Types...> t;
if (!example)
Expand Down Expand Up @@ -408,6 +410,7 @@ class StandardType<std::tuple<Types...>> : public DataType
}

StandardType(const StandardType<std::tuple<Types...>> & timpi_mpi_var(t))
: DataType()
{
timpi_call_mpi
(MPI_Type_dup (t._datatype, &_datatype));
Expand Down

0 comments on commit 5b7e0dc

Please sign in to comment.