X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/39cf43e4e190f5053b971b13ff1a1d82ebea5dba..10d9db5b4ff140f64b8cbf8150c1f84887e95a8e:/src/mc/AddressSpace.hpp diff --git a/src/mc/AddressSpace.hpp b/src/mc/AddressSpace.hpp index f0b6280e89..d14040e0f2 100644 --- a/src/mc/AddressSpace.hpp +++ b/src/mc/AddressSpace.hpp @@ -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 address, - ReadOptions options = ReadOptions::none()) const = 0; + virtual void* read_bytes(void* buffer, std::size_t size, RemotePtr address, + ReadOptions options = ReadOptions::none()) const = 0; /** Read a given data structure from the address space */ template inline void read(T* buffer, RemotePtr ptr) const { this->read_bytes(buffer, sizeof(T), ptr); } template inline void read(Remote& buffer, RemotePtr 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