From 568f6d1801a4360a92a07a3a78b8ee0b8b02fd32 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Wed, 6 Jun 2018 13:56:56 +0100 Subject: [PATCH] Add missing move --- tl/expected.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tl/expected.hpp b/tl/expected.hpp index df79526..51a0c16 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -648,7 +648,7 @@ struct expected_operations_base : expected_storage_base { geterr().~unexpected(); construct(std::move(rhs).get()); } else { - assign_common(rhs); + assign_common(std::move(rhs)); } } @@ -666,7 +666,7 @@ struct expected_operations_base : expected_storage_base { throw; } } else { - assign_common(rhs); + assign_common(std::move(rhs)); } }