]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/include/smpi_info.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make Datatype::contents_ a private std::unique_ptr.
[simgrid.git] / src / smpi / include / smpi_info.hpp
index 6af1f0c3c7a9b73100b6a2b38fffc56f53363bc8..df50447cbe5adb48470bed14e1b22d7f48dbb41a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2020. The SimGrid Team.
+/* Copyright (c) 2009-2021. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -20,9 +20,8 @@ class Info : public F2C{
   int refcount_ = 1;
 
 public:
-  Info() = default;
-  explicit Info(const Info* orig) : map_(orig->map_) {}
-  ~Info() override = default;
+  explicit Info() {this->add_f();}
+  explicit Info(const Info* orig) : map_(orig->map_) {this->add_f();}
   void ref();
   static void unref(MPI_Info info);
   void set(const char* key, const char* value) { map_[key] = value; }