From 747ca31071ca9ebf80321386d3480e75a3aedc38 Mon Sep 17 00:00:00 2001 From: degomme Date: Sun, 31 Jan 2016 00:50:54 +0100 Subject: [PATCH] These consts were wrong - Thanks gcc 6.0 for the warning --- src/mc/AddressSpace.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1