Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable move constructor which cannot be 'noexecept' (sonar).
[simgrid.git] / src / mc / mc_record.hpp
index b0739db41f0b5931acb5142f46900eb280697d21..a2f73106280c5dc35badbcefba7f5cb96bd98571 100644 (file)
@@ -28,7 +28,11 @@ class RecordTrace {
   std::deque<Transition*> transitions_;
 
 public:
   std::deque<Transition*> transitions_;
 
 public:
-  RecordTrace() = default;
+  // Use rule-of-three, and implicitely disable the move constructor which cannot be 'noexcept' (as required by C++ Core
+  // Guidelines), due to the std::deque member.
+  RecordTrace()                   = default;
+  RecordTrace(const RecordTrace&) = default;
+  ~RecordTrace()                  = default;
 
   /** Build a trace that can be replayed from a string representation */
   explicit RecordTrace(const char* data);
 
   /** Build a trace that can be replayed from a string representation */
   explicit RecordTrace(const char* data);