]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/sosp/Region.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix ExecImpl::get_remaining to return the right value when not started
[simgrid.git] / src / mc / sosp / Region.hpp
index 0131713643b40939eaab43cce437cf4baa03cb1e..7c5fe19908e00ec39487603b9088d3f4898f5ecb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -37,7 +37,6 @@ private:
 
 public:
   Region(RegionType type, void* start_addr, size_t size);
-  ~Region()             = default;
   Region(Region const&) = delete;
   Region& operator=(Region const&) = delete;
   Region(Region&& that)            = delete;
@@ -60,7 +59,7 @@ public:
   bool contain(RemotePtr<void> p) const { return p >= start() && p < end(); }
 
   /** @brief Restore a region from a snapshot */
-  void restore();
+  void restore() const;
 
   /** @brief Read memory that was snapshotted in this region
    *