From 50776133b5efba68bbf7a63e08303ecc2c3838ea Mon Sep 17 00:00:00 2001 From: Alexander Arlt Date: Wed, 8 Apr 2020 08:56:50 -0500 Subject: [PATCH] Fix ownership, part two. --- libsolutil/CommonData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolutil/CommonData.h b/libsolutil/CommonData.h index fa11d2bc7..feed0925f 100644 --- a/libsolutil/CommonData.h +++ b/libsolutil/CommonData.h @@ -51,7 +51,7 @@ template std::vector& operator+=(std::vector& _a, U&& _ return _a; } /// Concatenate the contents of a container onto a multiset -template std::multiset& operator+=(std::multiset& _a, U const& _b) +template std::multiset& operator+=(std::multiset& _a, U& _b) { _a.insert(_b.begin(), _b.end()); return _a; @@ -64,7 +64,7 @@ template std::multiset& operator+=(std::multiset std::set& operator+=(std::set& _a, U const& _b) +template std::set& operator+=(std::set& _a, U& _b) { _a.insert(_b.begin(), _b.end()); return _a;