From 32862d6db73871ce253abe7d7e3f30d334407ca4 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 18 Oct 2022 16:02:33 +0300 Subject: [PATCH] Add missing std::move --- include/boost/variant2/variant.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/variant2/variant.hpp b/include/boost/variant2/variant.hpp index 8365724..91920de 100644 --- a/include/boost/variant2/variant.hpp +++ b/include/boost/variant2/variant.hpp @@ -2479,7 +2479,7 @@ template struct tag_invoke_L2 if( r2 ) { - r.emplace( in_place_index_t{}, *r2 ); + r.emplace( in_place_index_t{}, std::move( *r2 ) ); } } }