From 4ce4318bdbb9f10d242e1534ecad6b378af7e88b Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Thu, 11 Aug 2016 22:39:27 +0200 Subject: [PATCH] Fix expected --- tstl/include/expected.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tstl/include/expected.hpp b/tstl/include/expected.hpp index 3421c9b2..76d785cc 100644 --- a/tstl/include/expected.hpp +++ b/tstl/include/expected.hpp @@ -260,7 +260,7 @@ public: } expected& operator=(expected&& rhs){ - this_type(std::forward(rhs)).swap(*this); + this_type(std::move(rhs)).swap(*this); return *this; } @@ -270,7 +270,7 @@ public: } expected& operator=(value_type&& v){ - this_type(std::forward(v)).swap(*this); + this_type(std::move(v)).swap(*this); return *this; }