Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Use the real override
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 28 Jul 2015 11:37:12 +0000 (13:37 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 28 Jul 2015 11:39:47 +0000 (13:39 +0200)
src/mc/mc_forward.hpp
src/mc/mc_process.h
src/mc/mc_snapshot.h

index 551bee4..e0e7eb1 100644 (file)
 #ifndef SIMGRID_MC_FORWARD_HPP
 #define SIMGRID_MC_FORWARD_HPP
 
-#ifndef __has_feature
-  #define MC_OVERRIDE
-#else
-  #if __has_feature(cxx_override_control)
-    #define MC_OVERRIDE override
-  #else
-    #define MC_OVERRIDE
-  #endif
-#endif
-
 namespace simgrid {
 namespace mc {
 
index 8aee3c0..81002ab 100644 (file)
@@ -72,7 +72,7 @@ public:
   // Read memory:
   const void* read_bytes(void* buffer, std::size_t size,
     remote_ptr<void> address, int process_index = ProcessIndexAny,
-    ReadMode mode = Normal) const MC_OVERRIDE;
+    ReadMode mode = Normal) const override;
   void read_variable(const char* name, void* target, size_t size) const;
   template<class T>
   T read_variable(const char *name) const
index 418278d..00a36e4 100644 (file)
@@ -145,7 +145,7 @@ public:
   ~Snapshot();
   const void* read_bytes(void* buffer, std::size_t size,
     remote_ptr<void> address, int process_index = ProcessIndexAny,
-    ReadMode mode = Normal) const MC_OVERRIDE;
+    ReadMode mode = Normal) const override;
 public: // To be private
   simgrid::mc::Process* process;
   int num_state;