mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-18 14:02:18 +00:00
fix future<> assing-operators
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user