Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Restore explicitely defined constructor (with empty body).
[simgrid.git] / src / mc / AddressSpace.hpp
index f0b6280..847ee77 100644 (file)
@@ -19,10 +19,10 @@ namespace mc {
  *  integers are not allowed.
  */
 class ReadOptions {
-  std::uint32_t value_;
+  std::uint32_t value_ = 0;
   constexpr explicit ReadOptions(std::uint32_t value) : value_(value) {}
 public:
-  constexpr ReadOptions() : value_(0) {}
+  constexpr ReadOptions() {}
 
   explicit constexpr operator bool() const { return value_ != 0; }
   constexpr bool operator!() const { return value_ == 0; }
@@ -102,15 +102,15 @@ public:
    *  @param address       remote source address of the data
    *  @param options
    */
-  virtual const void* read_bytes(void* buffer, std::size_t size, RemotePtr<void> address,
-                                 ReadOptions options = ReadOptions::none()) const = 0;
+  virtual void* read_bytes(void* buffer, std::size_t size, RemotePtr<void> address,
+                           ReadOptions options = ReadOptions::none()) const = 0;
 
   /** Read a given data structure from the address space */
   template <class T> inline void read(T* buffer, RemotePtr<T> ptr) const { this->read_bytes(buffer, sizeof(T), ptr); }
 
   template <class T> inline void read(Remote<T>& buffer, RemotePtr<T> ptr) const
   {
-    this->read_bytes(buffer.getBuffer(), sizeof(T), ptr);
+    this->read_bytes(buffer.get_buffer(), sizeof(T), ptr);
   }
 
   /** Read a given data structure from the address space