X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d098dd9e12ee321b061421f535b2b56ce7691673..a28f8d4f0a7734d65dafa41486ca0ab78038a975:/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;