From d4e7ac721c90cd77f6f6d653030145717caf7a5f Mon Sep 17 00:00:00 2001 From: Brian Weed Date: Wed, 14 Aug 2024 14:12:23 -0400 Subject: [PATCH] Performance improvement By-value sink params can be moved into their final destination --- include/boost/regex/v5/match_results.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/regex/v5/match_results.hpp b/include/boost/regex/v5/match_results.hpp index 6b77ea57..eb54e0c3 100644 --- a/include/boost/regex/v5/match_results.hpp +++ b/include/boost/regex/v5/match_results.hpp @@ -553,7 +553,7 @@ public: void set_named_subs(std::shared_ptr subs) { - m_named_subs = subs; + m_named_subs = std::move(subs); } private: