From 34744257809ce3aa37904212a0230c39ccfa79de Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Wed, 23 Oct 2013 19:11:07 +0200 Subject: [PATCH] fix future<> assing-operators --- include/boost/fiber/future/future.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/fiber/future/future.hpp b/include/boost/fiber/future/future.hpp index 8e0ea864..83f95207 100644 --- a/include/boost/fiber/future/future.hpp +++ b/include/boost/fiber/future/future.hpp @@ -941,7 +941,7 @@ public: shared_future & operator=( shared_future const& other) BOOST_NOEXCEPT { //TODO: - shared_future tmp( other); + shared_future tmp( boost::move( other) ); swap( tmp); return * this; } @@ -949,7 +949,7 @@ public: shared_future & operator=( BOOST_RV_REF( future< void >) other) BOOST_NOEXCEPT { //TODO: - shared_future tmp( other); + shared_future tmp( boost::move( other) ); swap( tmp); return * this; }