From: degomme Date: Sat, 30 Jan 2016 23:50:54 +0000 (+0100) Subject: These consts were wrong - Thanks gcc 6.0 for the warning X-Git-Tag: v3_13~1035 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/747ca31071ca9ebf80321386d3480e75a3aedc38 These consts were wrong - Thanks gcc 6.0 for the warning --- 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;