X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a92d7b716f51a53dea7f59db8524d4add713b910..c2184f1318115fcea2571f738e8359044bc78d42:/src/mc/AddressSpace.hpp diff --git a/src/mc/AddressSpace.hpp b/src/mc/AddressSpace.hpp index 050650c0c9..e06c61ef51 100644 --- a/src/mc/AddressSpace.hpp +++ b/src/mc/AddressSpace.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2015. The SimGrid Team. +/* Copyright (c) 2008-2018. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -50,7 +50,7 @@ class ReadOptions { public: constexpr ReadOptions() : value_(0) {} - constexpr operator bool() const { return value_ != 0; } + explicit constexpr operator bool() const { return value_ != 0; } constexpr bool operator!() const { return value_ == 0; } constexpr ReadOptions operator|(ReadOptions const& that) const @@ -109,16 +109,17 @@ public: */ class AddressSpace { private: - Process* process_; + RemoteClient* process_; + public: - AddressSpace(Process* process) : process_(process) {} + explicit AddressSpace(RemoteClient* process) : process_(process) {} virtual ~AddressSpace() = default; - /** The process of this addres space + /** The process of this address space * * This is where we can get debug informations, memory layout, etc. */ - simgrid::mc::Process* process() const { return process_; } + simgrid::mc::RemoteClient* process() const { return process_; } /** Read data from the address space *