Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Explicitly delete the copy constructor and copy assignment operator (enforce rule...
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 31 May 2021 07:40:15 +0000 (09:40 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 31 May 2021 07:41:19 +0000 (09:41 +0200)
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();
 };