X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/27f768c6fbe663c6de000473c44a61222b77d481..89a8ddc975b0e3ecd348d5a9a9b9d3de8b579b2b:/src/mc/RemotePtr.hpp diff --git a/src/mc/RemotePtr.hpp b/src/mc/RemotePtr.hpp index c9a931c1d7..23d03729dc 100644 --- a/src/mc/RemotePtr.hpp +++ b/src/mc/RemotePtr.hpp @@ -34,6 +34,11 @@ public: RemotePtr(T* address) : address_((std::uintptr_t)address) {} std::uint64_t address() const { return address_; } + /** Turn into a local pointer + * + (if the remote process is not, in fact, remote) */ + T* local() { return (T*) address_; } + operator bool() const { return address_;