X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..6d3020209fdad39e81987f91d375f482be14dee6:/src/mc/AddressSpace.hpp?ds=sidebyside diff --git a/src/mc/AddressSpace.hpp b/src/mc/AddressSpace.hpp index 8701fa2597..c67ecb8914 100644 --- a/src/mc/AddressSpace.hpp +++ b/src/mc/AddressSpace.hpp @@ -21,6 +21,7 @@ namespace mc { class ReadOptions { std::uint32_t value_ = 0; constexpr explicit ReadOptions(std::uint32_t value) : value_(value) {} + public: constexpr ReadOptions() {} @@ -56,7 +57,7 @@ public: } ReadOptions& operator^=(ReadOptions const& that) { - value_ &= that.value_; + value_ ^= that.value_; return *this; } @@ -132,7 +133,6 @@ public: this->read_bytes(&res[0], len, address); return res; } - }; }