Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Explicitly delete the copy constructor and copy assignment operator (enforce rule...
[simgrid.git] / src / smpi / include / smpi_datatype.hpp
index 434299a..49b6821 100644 (file)
@@ -94,6 +94,8 @@ class Datatype_contents {
                     int number_of_integers, const int* integers, 
                     int number_of_addresses, const MPI_Aint* addresses, 
                     int number_of_datatypes, const MPI_Datatype* datatypes);
+  Datatype_contents(const Datatype_contents&) = delete;
+  Datatype_contents& operator=(const Datatype_contents&) = delete;
   ~Datatype_contents();
 };