]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/remote/RemoteClient.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Don't remove const qualification with cast.
[simgrid.git] / src / mc / remote / RemoteClient.hpp
index b786aeabe2420a27301f0e23f7443fea502b43cd..b5cfdc91da03d481408a6d9c9a9f5b83243f3f69 100644 (file)
@@ -6,8 +6,10 @@
 #ifndef SIMGRID_MC_PROCESS_H
 #define SIMGRID_MC_PROCESS_H
 
+#include "src/mc/AddressSpace.hpp"
 #include "src/mc/inspect/ObjectInformation.hpp"
 #include "src/mc/remote/Channel.hpp"
+#include "src/mc/remote/RemotePtr.hpp"
 #include "src/xbt/mmalloc/mmprivate.h"
 
 #include <vector>
@@ -80,8 +82,8 @@ public:
   RemoteClient& operator=(RemoteClient&&) = delete;
 
   // Read memory:
-  const void* read_bytes(void* buffer, std::size_t size, RemotePtr<void> address,
-                         ReadOptions options = ReadOptions::none()) const override;
+  void* read_bytes(void* buffer, std::size_t size, RemotePtr<void> address,
+                   ReadOptions options = ReadOptions::none()) const override;
 
   void read_variable(const char* name, void* target, size_t size) const;
   template <class T> void read_variable(const char* name, T* target) const