mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 14:22:23 +00:00
remove ambig. move-assing-op for unique_future<>
This commit is contained in:
@@ -672,7 +672,6 @@ namespace fibers {
|
||||
future=other.future;
|
||||
return *this;
|
||||
}
|
||||
|
||||
shared_future& operator=(BOOST_RV_REF(unique_future<R>) other)
|
||||
{
|
||||
future=other.future;
|
||||
@@ -694,12 +693,14 @@ namespace fibers {
|
||||
other.future.reset();
|
||||
return *this;
|
||||
}
|
||||
#if 0
|
||||
shared_future& operator=(unique_future<R> && other)
|
||||
{
|
||||
future.swap(other.future);
|
||||
other.future.reset();
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
shared_future(BOOST_RV_REF(shared_future) other):
|
||||
future(other.future)
|
||||
|
||||
Reference in New Issue
Block a user