From 9f1ac89e1cc10c209138d3a753d4eac7b4bd9f61 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 9 May 2023 16:46:08 +0200 Subject: [PATCH] Use forwarding references with std::forward (sonar). (hope I got it right this time) --- src/mc/explo/udpor/Unfolding.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc/explo/udpor/Unfolding.hpp b/src/mc/explo/udpor/Unfolding.hpp index 140c893525..3fa80f219d 100644 --- a/src/mc/explo/udpor/Unfolding.hpp +++ b/src/mc/explo/udpor/Unfolding.hpp @@ -73,7 +73,7 @@ public: * to an equivalent event that was already noted by the unfolding * at some point in the past */ - template const UnfoldingEvent* discover_event(Args... args) + template const UnfoldingEvent* discover_event(Args&&... args) { auto candidate_event = std::make_unique(std::forward(args)...); return insert(std::move(candidate_event)); -- 2.20.1