X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d098dd9e12ee321b061421f535b2b56ce7691673..4a6b0a991a67e6f2f67c03fed43529e078da7115:/src/mc/AddressSpace.hpp diff --git a/src/mc/AddressSpace.hpp b/src/mc/AddressSpace.hpp index 5b55a3106e..d0c92b51e9 100644 --- a/src/mc/AddressSpace.hpp +++ b/src/mc/AddressSpace.hpp @@ -50,12 +50,12 @@ public: { return remote_ptr(address_ - n * sizeof(T)); } - remote_ptr& operator+=(std::uint64_t n) const + remote_ptr& operator+=(std::uint64_t n) { address_ += n * sizeof(T); return *this; } - remote_ptr& operator-=(std::uint64_t n) const + remote_ptr& operator-=(std::uint64_t n) { address_ -= n * sizeof(T); return *this;