From 3f915121c4f828921e225252605cbe3e756dde94 Mon Sep 17 00:00:00 2001 From: Vladimir Ulchenko Date: Fri, 9 Aug 2024 17:20:43 +0300 Subject: [PATCH] fix https://github.com/boostorg/thread/issues/402 --- include/boost/thread/future.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/thread/future.hpp b/include/boost/thread/future.hpp index 00f504b9b..d15d7ffa5 100644 --- a/include/boost/thread/future.hpp +++ b/include/boost/thread/future.hpp @@ -4668,7 +4668,7 @@ namespace detail } run_it& operator=(BOOST_THREAD_RV_REF(run_it) x) BOOST_NOEXCEPT { if (this != &x) { - that_=x.that; + that_=x.that_; x.that_.reset(); } return *this;