Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use forwarding references with std::forward (sonar).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 9 May 2023 14:46:08 +0000 (16:46 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 9 May 2023 14:57:38 +0000 (16:57 +0200)
(hope I got it right this time)

src/mc/explo/udpor/Unfolding.hpp

index 140c893..3fa80f2 100644 (file)
@@ -73,7 +73,7 @@ public:
    * to an equivalent event that was already noted by the unfolding
    * at some point in the past
    */
-  template <typename... Args> const UnfoldingEvent* discover_event(Args... args)
+  template <typename... Args> const UnfoldingEvent* discover_event(Args&&... args)
   {
     auto candidate_event = std::make_unique<UnfoldingEvent>(std::forward<Args>(args)...);
     return insert(std::move(candidate_event));