Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable move constructor which cannot be 'noexecept' (sonar).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 12 May 2023 07:45:46 +0000 (09:45 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 12 May 2023 07:45:46 +0000 (09:45 +0200)
src/mc/mc_record.hpp

index b0739db..a2f7310 100644 (file)
@@ -28,7 +28,11 @@ class RecordTrace {
   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);